summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2019-10-23 09:08:21 -0400
committerMark Stapp <mjs@voltanet.io>2019-10-23 09:08:21 -0400
commit15e84e5abbf32ab6ad470ee3dbdcfa27c87e455f (patch)
tree58ecd525068e9a43070b0c6a9ab2620f3572c520
parent3e6fd94f837a5ca45f4639b6ab2e3449d98f50a6 (diff)
lib: Remove include of deprecated sysctl.h
Stop including deprecated header file; appears to be unused and it has been deprecated in recent linux. Signed-off-by: Mark Stapp <mjs@voltanet.io>
-rw-r--r--lib/zebra.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/zebra.h b/lib/zebra.h
index b17ef700b4..de9a347e1f 100644
--- a/lib/zebra.h
+++ b/lib/zebra.h
@@ -52,10 +52,9 @@ typedef unsigned char uint8_t;
#include <sys/types.h>
#include <sys/param.h>
#ifdef HAVE_SYS_SYSCTL_H
-#ifdef GNU_LINUX
-#include <linux/types.h>
-#endif
+#ifndef GNU_LINUX
#include <sys/sysctl.h>
+#endif
#endif /* HAVE_SYS_SYSCTL_H */
#include <sys/ioctl.h>
#ifdef HAVE_SYS_CONF_H