]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 26 May 2010 04:52:58 +0000 (16:52 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 26 May 2010 04:52:58 +0000 (16:52 +1200)
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.

include/config.h

index 6dbf144713ef1a9fb5eb095e511cb98b37263faa..19d8c00efb13038bf408dca25467c6e391bdc86a 100644 (file)
 #if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
 #if SQUID_MAXFD > DEFAULT_FD_SETSIZE
 #include <bits/types.h>
+#include <linux/posix_types.h>
 #undef __FD_SETSIZE
 #define __FD_SETSIZE SQUID_MAXFD
 #endif