summaryrefslogtreecommitdiff
path: root/zebra/ipforward_sysctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/ipforward_sysctl.c')
-rw-r--r--zebra/ipforward_sysctl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/zebra/ipforward_sysctl.c b/zebra/ipforward_sysctl.c
index 00be92bb6d..36212a0132 100644
--- a/zebra/ipforward_sysctl.c
+++ b/zebra/ipforward_sysctl.c
@@ -19,6 +19,9 @@
*/
#include <zebra.h>
+
+#if !defined(GNU_LINUX) && !defined(SUNOS_5)
+
#include "privs.h"
#include "zebra/ipforward.h"
@@ -147,3 +150,5 @@ int ipforward_ipv6_off(void)
zlog_err("Can't lower privileges");
return ip6forwarding;
}
+
+#endif /* !defined(GNU_LINUX) && !defined(SUNOS_5) */