]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #2876: FD_SETSIZE override not working on all linux distributions
authorHenrik Nordstrom <henrik@henriknordstrom.net>
Fri, 14 May 2010 12:05:27 +0000 (14:05 +0200)
committerHenrik Nordstrom <henrik@henriknordstrom.net>
Fri, 14 May 2010 12:05:27 +0000 (14:05 +0200)
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.

compat/fdsetsize.h

index 9701197001e15bf2b50700a9c03ca8f4a70ca719..a93c4e344fe76c225f237cc1c28634c892a0ddca 100644 (file)
@@ -40,6 +40,7 @@
 #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