]> git.puffer.fish Git - mirror/frr.git/commitdiff
[linux] Fix strange compilation problem by explicitly including <linux/types.h>
authorAndrew J. Schorr <ajschorr@alumni.princeton.edu>
Fri, 1 Jun 2007 13:21:20 +0000 (13:21 +0000)
committerAndrew J. Schorr <ajschorr@alumni.princeton.edu>
Fri, 1 Jun 2007 13:21:20 +0000 (13:21 +0000)
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.

lib/ChangeLog
lib/zebra.h

index 4360c8332c4fbf375468e10b75624305262f9e0d..3a1d1f6ba0c0429d4393f390e5d4ffb82d04fa56 100644 (file)
@@ -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.
index 2451dbed5b88e42d6c34764acef50d302d085c45..2c7edd926aee6a3f341def64991aa48892f9bd01 100644 (file)
@@ -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>