summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Winter <mwinter@opensourcerouting.org>2020-01-20 15:40:49 +0100
committerMartin Winter <mwinter@opensourcerouting.org>2020-01-20 15:40:49 +0100
commitbeec2cfe5798a3d713f85db31039119ad32df1bd (patch)
tree188f2535c4b12df6dccabc298856b8b9bd7eac56
parenta5586bb6be071b1cb661da01e00206a3a42d6d34 (diff)
lib: Fix missing __be16 typedef on CentOS6
Need to include linux/types.h on older Linux Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
-rw-r--r--lib/zebra.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/zebra.h b/lib/zebra.h
index de9a347e1f..00d422cdd1 100644
--- a/lib/zebra.h
+++ b/lib/zebra.h
@@ -52,7 +52,9 @@ typedef unsigned char uint8_t;
#include <sys/types.h>
#include <sys/param.h>
#ifdef HAVE_SYS_SYSCTL_H
-#ifndef GNU_LINUX
+#ifdef GNU_LINUX
+#include <linux/types.h>
+#else
#include <sys/sysctl.h>
#endif
#endif /* HAVE_SYS_SYSCTL_H */