]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix compile on FreeBSD.
authorRoy Marples <roy@marples.name>
Fri, 2 Feb 2018 16:28:31 +0000 (16:28 +0000)
committerRoy Marples <roy@marples.name>
Fri, 2 Feb 2018 16:28:31 +0000 (16:28 +0000)
src/if-bsd.c

index 26d75df9a8b7e6d22a21b8e02c1c951aed408fa4..e0f04cf1d16bff10901fcacee8dd13ee392405d0 100644 (file)
@@ -1248,7 +1248,7 @@ if_machinearch(char *str, size_t len)
 }
 
 #ifdef INET6
-#if defined(IPV6CTL_ACCEPT_RTADV) && !defined(ND6_IFF_ACCEPT_RTADV)
+#if defined(IPV6CTL_ACCEPT_RTADV)
 #define get_inet6_sysctl(code) inet6_sysctl(code, 0, 0)
 #define set_inet6_sysctl(code, val) inet6_sysctl(code, val, 1)
 static int
@@ -1273,7 +1273,6 @@ inet6_sysctl(int code, int val, int action)
 
 #ifdef IPV6_MANAGETEMPADDR
 #ifndef IPV6CTL_TEMPVLTIME
-
 #define get_inet6_sysctlbyname(code) inet6_sysctlbyname(code, 0, 0)
 #define set_inet6_sysctlbyname(code, val) inet6_sysctlbyname(code, val, 1)
 static int