summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2010-01-09 09:02:07 +1100
committerDarren Tucker <dtucker@zip.com.au>2010-01-09 09:02:07 +1100
commit9eba40cec9de097b41f3f1c84799476f14260920 (patch)
tree27f6c5d87ddcf361211d18448116f9e6c2c7ab53 /misc.c
parent340d1688e658e85a3c45270bc3fca4e6d1aee9b1 (diff)
downloadopenssh-git-9eba40cec9de097b41f3f1c84799476f14260920.tar.gz
- (dtucker) Wrap use of IPPROTO_IPV6 in an ifdef for platforms that don't
have it.
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/misc.c b/misc.c
index f62f8efc..b260d89f 100644
--- a/misc.c
+++ b/misc.c
@@ -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",