diff options
author | Martin Winter <mwinter@opensourcerouting.org> | 2020-01-20 15:40:49 +0100 |
---|---|---|
committer | Martin Winter <mwinter@opensourcerouting.org> | 2020-01-20 15:40:49 +0100 |
commit | beec2cfe5798a3d713f85db31039119ad32df1bd (patch) | |
tree | 188f2535c4b12df6dccabc298856b8b9bd7eac56 /lib/zebra.h | |
parent | doc: add instructions for static linking (#5668) (diff) | |
download | frr-beec2cfe5798a3d713f85db31039119ad32df1bd.tar.xz frr-beec2cfe5798a3d713f85db31039119ad32df1bd.zip |
lib: Fix missing __be16 typedef on CentOS6
Need to include linux/types.h on older Linux
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Diffstat (limited to 'lib/zebra.h')
-rw-r--r-- | lib/zebra.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/zebra.h b/lib/zebra.h index de9a347e1..00d422cdd 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 */ |