]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: Remove include of deprecated sysctl.h
authorMark Stapp <mjs@voltanet.io>
Wed, 23 Oct 2019 13:08:21 +0000 (09:08 -0400)
committerMark Stapp <mjs@voltanet.io>
Wed, 23 Oct 2019 13:08:21 +0000 (09:08 -0400)
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>
lib/zebra.h

index b17ef700b4aed2ea9860f945bef902c990ab07d4..de9a347e1f4be7e826c26081e4469482bbf3c724 100644 (file)
@@ -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