- (dtucker) Wrap use of IPPROTO_IPV6 in an ifdef for platforms that don't

have it.
This commit is contained in:
Darren Tucker 2010-01-09 09:02:07 +11:00
parent 340d1688e6
commit 9eba40cec9
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
20091209
- (dtucker) Wrap use of IPPROTO_IPV6 in an ifdef for platforms that don't
have it.
20091208
- (dtucker) OpenBSD CVS Sync
- andreas@cvs.openbsd.org 2009/10/24 11:11:58

2
misc.c
View File

@ -164,9 +164,11 @@ socket_rdomain(int domain, int type, int protocol, int rdomain)
return (sock);
switch (domain) {
#ifdef IPPROTO_IPV6
case AF_INET6:
ipproto = IPPROTO_IPV6;
/* FALLTHROUGH */
#endif
case AF_INET:
#ifdef USE_ROUTINGDOMAIN
debug2("socket %d af %d setting rdomain %d",