]> git.kaiwu.me - haproxy.git/commitdiff
[BUILD] fix build with gcc 4.3
authorJeremy Hinegardner <jeremy@hinegardner.org>
Mon, 21 Apr 2008 05:34:31 +0000 (07:34 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 21 Apr 2008 05:34:31 +0000 (07:34 +0200)
For Fedora 9 gcc 4.3 will be shipping as a feature, and right now haproxy does
not compile with gcc 4.3.

It appears that there is a reordering of headers or something along those lines,
This is the patch that gets haproxy to compile with gcc 4.3.  I'm not sure if
this is the correct approach you would want to use, so please correct me.

If this works for you, I'll go ahead and put this patch in the src rpm until a
release of haproxy which compiles with gcc 4.3 is released.

include/common/compat.h

index 774f9b44c38257d100ba187b50ccd0b153601467..a41be70ca8c5130d623411fb4006f975d838b7a3 100644 (file)
@@ -35,6 +35,7 @@
 #include <sys/socket.h>
 #include <sys/types.h>
 #include <common/config.h>
+#include <common/standard.h>
 
 /* INTBITS
  * how many bits are needed to code the size of an int on the target platform.
@@ -63,6 +64,8 @@
 #endif
 
 #if defined(TPROXY) && defined(NETFILTER)
+#include <linux/types.h>
+#include <linux/netfilter_ipv6.h>
 #include <linux/netfilter_ipv4.h>
 #endif