]> andersk Git - openssh.git/blobdiff - misc.c
- (dtucker) [defines.h] define PRIu64 for platforms that don't have it.
[openssh.git] / misc.c
diff --git a/misc.c b/misc.c
index d4bdfc0eae5c2410b70e434746d5d853383c602a..b260d89fe94fa4cd82a4f62cadbf6118f75ad3cf 100644 (file)
--- a/misc.c
+++ b/misc.c
@@ -162,12 +162,15 @@ socket_rdomain(int domain, int type, int protocol, int rdomain)
 
        if (rdomain == -1)
                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",
                    sock, domain, rdomain);
                if (setsockopt(sock, ipproto, SO_RDOMAIN, &rdomain,
@@ -177,6 +180,7 @@ socket_rdomain(int domain, int type, int protocol, int rdomain)
                        close(sock);
                        return (-1);
                }
+#endif
                break;
        default:
                debug("socket %d af %d does not support rdomain %d",
@@ -273,6 +277,7 @@ a2port(const char *s)
        return (int)port;
 }
 
+#ifdef USE_ROUTINGDOMAIN
 int
 a2rdomain(const char *s)
 {
@@ -284,6 +289,7 @@ a2rdomain(const char *s)
                return -1;
        return (int)rdomain;
 }
+#endif
 
 int
 a2tun(const char *s, int *remote)
This page took 0.202313 seconds and 4 git commands to generate.