]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix warning on FreeBSD where we don't need to use sysctlbyname(3).
authorRoy Marples <roy@marples.name>
Tue, 20 Jan 2015 20:56:13 +0000 (20:56 +0000)
committerRoy Marples <roy@marples.name>
Tue, 20 Jan 2015 20:56:13 +0000 (20:56 +0000)
if-bsd.c

index 35548fd68541ff49650f4593664b2eabc4aecc1e..8470ac886d4f2b954cf236b1e7a5ce02489bf713 100644 (file)
--- a/if-bsd.c
+++ b/if-bsd.c
@@ -1087,7 +1087,9 @@ inet6_sysctl(int code, int val, int action)
                return -1;
        return val;
 }
+#endif
 
+#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