]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: Remove include of deprecated sysctl.h 5316/head
authorMark Stapp <mjs@voltanet.io>
Wed, 23 Oct 2019 13:08:21 +0000 (09:08 -0400)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Tue, 12 Nov 2019 07:14:32 +0000 (14:14 +0700)
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>
(cherry picked from commit 15e84e5abbf32ab6ad470ee3dbdcfa27c87e455f)

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