From e83c3ea4b8086c04c9ba0d012808d9c65c0bbe65 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Fri, 8 Jan 2010 20:03:56 +1100 Subject: - (dtucker) [misc.c] Move the routingdomain ifdef to allow the socket to be created. --- misc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'misc.c') diff --git a/misc.c b/misc.c index db57f92b2..08a80226d 100644 --- a/misc.c +++ b/misc.c @@ -155,7 +155,6 @@ set_nodelay(int fd) int socket_rdomain(int domain, int type, int protocol, int rdomain) { -#ifdef USE_ROUTINGDOMAIN int sock, ipproto = IPPROTO_IP; if ((sock = socket(domain, type, protocol)) == -1) @@ -163,7 +162,8 @@ socket_rdomain(int domain, int type, int protocol, int rdomain) if (rdomain == -1) return (sock); - + +#ifdef USE_ROUTINGDOMAIN switch (domain) { case AF_INET6: ipproto = IPPROTO_IPV6; @@ -187,6 +187,8 @@ socket_rdomain(int domain, int type, int protocol, int rdomain) } return (sock); +#else + return (-1); #endif } -- cgit v1.2.3