diff options
author | ajs <ajs> | 2007-06-01 13:21:20 +0000 |
---|---|---|
committer | ajs <ajs> | 2007-06-01 13:21:20 +0000 |
commit | 2fa824ed3af95a0d0845a9a3605259df59fc28b2 (patch) | |
tree | 771b8d928c0fb57f0f89b98c4ec8a630e7ac1bea | |
parent | c0c9c6ee7292acdbf3ba506bc026a54a7c1e8642 (diff) | |
download | quagga-2fa824ed3af95a0d0845a9a3605259df59fc28b2.tar.bz2 quagga-2fa824ed3af95a0d0845a9a3605259df59fc28b2.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.
-rw-r--r-- | lib/ChangeLog | 6 | ||||
-rw-r--r-- | lib/zebra.h | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog index 4360c833..3a1d1f6b 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,9 @@ +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. + 2007-05-10 Paul Jakma <paul.jakma@sun.com> * zebra.h: Don't try define _GNU_SOURCE, autoconf should do it. 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> |