diff options
author | Darren Tucker <dtucker@zip.com.au> | 2010-01-09 09:02:07 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2010-01-09 09:02:07 +1100 |
commit | 9eba40cec9de097b41f3f1c84799476f14260920 (patch) | |
tree | 27f6c5d87ddcf361211d18448116f9e6c2c7ab53 | |
parent | 340d1688e658e85a3c45270bc3fca4e6d1aee9b1 (diff) |
- (dtucker) Wrap use of IPPROTO_IPV6 in an ifdef for platforms that don't
have it.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | misc.c | 2 |
2 files changed, 6 insertions, 0 deletions
@@ -1,3 +1,7 @@ | |||
1 | 20091209 | ||
2 | - (dtucker) Wrap use of IPPROTO_IPV6 in an ifdef for platforms that don't | ||
3 | have it. | ||
4 | |||
1 | 20091208 | 5 | 20091208 |
2 | - (dtucker) OpenBSD CVS Sync | 6 | - (dtucker) OpenBSD CVS Sync |
3 | - andreas@cvs.openbsd.org 2009/10/24 11:11:58 | 7 | - andreas@cvs.openbsd.org 2009/10/24 11:11:58 |
@@ -164,9 +164,11 @@ socket_rdomain(int domain, int type, int protocol, int rdomain) | |||
164 | return (sock); | 164 | return (sock); |
165 | 165 | ||
166 | switch (domain) { | 166 | switch (domain) { |
167 | #ifdef IPPROTO_IPV6 | ||
167 | case AF_INET6: | 168 | case AF_INET6: |
168 | ipproto = IPPROTO_IPV6; | 169 | ipproto = IPPROTO_IPV6; |
169 | /* FALLTHROUGH */ | 170 | /* FALLTHROUGH */ |
171 | #endif | ||
170 | case AF_INET: | 172 | case AF_INET: |
171 | #ifdef USE_ROUTINGDOMAIN | 173 | #ifdef USE_ROUTINGDOMAIN |
172 | debug2("socket %d af %d setting rdomain %d", | 174 | debug2("socket %d af %d setting rdomain %d", |