From: Jeremy Hinegardner Date: Mon, 21 Apr 2008 05:34:31 +0000 (+0200) Subject: [BUILD] fix build with gcc 4.3 X-Git-Tag: v1.3.16-rc1~274 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e7dd2f29b9529965c465b19035f42256fd138bdc;p=thirdparty%2Fhaproxy.git [BUILD] fix build with gcc 4.3 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. --- diff --git a/include/common/compat.h b/include/common/compat.h index 9cce1f53c6..4e86325e69 100644 --- a/include/common/compat.h +++ b/include/common/compat.h @@ -35,6 +35,7 @@ #include #include #include +#include /* 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 +#include #include #endif