From: Roy Marples Date: Tue, 20 Aug 2013 10:36:49 +0000 (+0000) Subject: Fix compile X-Git-Tag: v6.1.0~38 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5b0fe196aeec4594293552916f021d68cf3a6bb4;p=thirdparty%2Fdhcpcd.git Fix compile Don't warn about BSD kernels not reporting DAD if not building IPv6 --- diff --git a/ipv6.h b/ipv6.h index 5a827af1..2ce706ab 100644 --- a/ipv6.h +++ b/ipv6.h @@ -66,7 +66,7 @@ # endif #endif -#ifdef LISTEN_DAD +#if defined(LISTEN_DAD) && defined(INET6) # warning kernel does not report DAD results to userland # warning listening to duplicated addresses on the wire #endif diff --git a/ipv6nd.c b/ipv6nd.c index dcab8b4d..38486b12 100644 --- a/ipv6nd.c +++ b/ipv6nd.c @@ -280,7 +280,7 @@ ipv6nd_naopen(void) return sock; eexit: -#ifdef LISTEN_DAD +#ifdef IPV6_SEND_DAD close(unspec_sock); unspec_sock = -1; #endif