]> git.proxmox.com Git - mirror_frr.git/commitdiff
lib: Fix missing __be16 typedef on CentOS6
authorMartin Winter <mwinter@opensourcerouting.org>
Mon, 20 Jan 2020 14:40:49 +0000 (15:40 +0100)
committerMartin Winter <mwinter@opensourcerouting.org>
Mon, 20 Jan 2020 14:40:49 +0000 (15:40 +0100)
Need to include linux/types.h on older Linux

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
lib/zebra.h

index de9a347e1f4be7e826c26081e4469482bbf3c724..00d422cdd149529be144cca53c9c3051fcaa813f 100644 (file)
@@ -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 */