summaryrefslogtreecommitdiffstats
path: root/if-bsd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2015-01-20 20:56:13 +0000
committerRoy Marples <roy@marples.name>2015-01-20 20:56:13 +0000
commit6635ae0d32910efbdf67510967f19ba8a4f79467 (patch)
treeabce327c19979ca07a3354269d86dbc43699d461 /if-bsd.c
parent515dd1616f86bca80f760736989a5b280f6b4651 (diff)
downloaddhcpcd-6635ae0d32910efbdf67510967f19ba8a4f79467.tar.xz
Fix warning on FreeBSD where we don't need to use sysctlbyname(3).
Diffstat (limited to 'if-bsd.c')
-rw-r--r--if-bsd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/if-bsd.c b/if-bsd.c
index 35548fd6..8470ac88 100644
--- 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