From 5b0fe196aeec4594293552916f021d68cf3a6bb4 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Tue, 20 Aug 2013 10:36:49 +0000 Subject: [PATCH] Fix compile Don't warn about BSD kernels not reporting DAD if not building IPv6 --- ipv6.h | 2 +- ipv6nd.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.3