From: wessels <> Date: Sun, 24 Nov 1996 11:16:40 +0000 (+0000) Subject: put back altering FD_SETSIZE X-Git-Tag: SQUID_3_0_PRE1~5423 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fa2cd4d95985f6573e761f51c135113e93f0ec1;p=thirdparty%2Fsquid.git put back altering FD_SETSIZE --- diff --git a/src/squid.h b/src/squid.h index a4204c90b6..f38e9953ca 100644 --- a/src/squid.h +++ b/src/squid.h @@ -1,6 +1,6 @@ /* - * $Id: squid.h,v 1.75 1996/11/22 05:07:15 wessels Exp $ + * $Id: squid.h,v 1.76 1996/11/24 04:16:40 wessels Exp $ * * AUTHOR: Duane Wessels * @@ -33,6 +33,19 @@ #include "config.h" +/* + * On some systems, FD_SETSIZE is set to something lower than the + * actual number of files which can be opened. IRIX is one case, + * NetBSD is another. So here we increase FD_SETSIZE to our + * configure-discovered maximum *before* including any system .h + * files. If something changes FD_SETSIZE to a lower value, were + * hosed... + */ + +#if SQUID_MAXFD > 256 +#define FD_SETSIZE SQUID_MAXFD +#endif + #if HAVE_UNISTD_H #include #endif @@ -222,7 +235,12 @@ typedef unsigned long u_num32; #endif #include "ansiproto.h" + +#if HAVE_REGEX_H +#include +#else /* HAVE_REGEX_H */ #include "GNUregex.h" +#endif /* HAVE_REGEX_H */ typedef void (*SIH) (int, void *); /* swap in */ typedef int (*QS) (const void *, const void *);