From: Henrik Nordstrom Date: Fri, 14 May 2010 12:05:27 +0000 (+0200) Subject: Bug #2876: FD_SETSIZE override not working on all linux distributions X-Git-Tag: SQUID_3_2_0_1~212 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e986e574230f6eb9fe9e353ed9306358334fc84e;p=thirdparty%2Fsquid.git Bug #2876: FD_SETSIZE override not working on all linux distributions The glibc hack for overriding FD_SETSIZE seems to have broken down on some families of Linux distribution, requiring one more header to be included before redefine. Hopefully this does not break the FD_SETSIZE override on more systems than it fixes.. if it does then some additional autoconffuu will be needed. --- diff --git a/compat/fdsetsize.h b/compat/fdsetsize.h index 9701197001..a93c4e344f 100644 --- a/compat/fdsetsize.h +++ b/compat/fdsetsize.h @@ -40,6 +40,7 @@ #if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) #if SQUID_MAXFD > DEFAULT_FD_SETSIZE #include +#include #undef __FD_SETSIZE #define __FD_SETSIZE SQUID_MAXFD #endif