summaryrefslogtreecommitdiffstats
path: root/lib/zebra.h
diff options
context:
space:
mode:
authorajs <ajs>2007-06-01 13:21:20 +0000
committerajs <ajs>2007-06-01 13:21:20 +0000
commit7faa2b1518cb0ea9566e683a8ab315d2adb7652c (patch)
tree02d47b90d0bfd1b5d8af5a9b2362865d361c0977 /lib/zebra.h
parenta84ac5f61e153dcb5703589324fd252ecf57827c (diff)
downloadquagga-7faa2b1518cb0ea9566e683a8ab315d2adb7652c.tar.bz2
quagga-7faa2b1518cb0ea9566e683a8ab315d2adb7652c.tar.xz
[linux] Fix strange compilation problem by explicitly including <linux/types.h>
2007-06-01 Andrew J. Schorr <ajschorr@alumni.princeton.edu> * zebra.h: On linux, we seem to need to include <linux/types.h> before <sys/sysctl.h>, otherwise we get isisd compilation errors about __be16 not being defined.
Diffstat (limited to 'lib/zebra.h')
-rw-r--r--lib/zebra.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/zebra.h b/lib/zebra.h
index 2451dbed..2c7edd92 100644
--- a/lib/zebra.h
+++ b/lib/zebra.h
@@ -59,6 +59,9 @@ typedef int socklen_t;
#include <sys/types.h>
#include <sys/param.h>
#ifdef HAVE_SYS_SYSCTL_H
+#ifdef GNU_LINUX
+#include <linux/types.h>
+#endif
#include <sys/sysctl.h>
#endif /* HAVE_SYS_SYSCTL_H */
#include <sys/ioctl.h>