From: Amos Jeffries Date: Sat, 12 Jun 2010 10:36:06 +0000 (+1200) Subject: kFreeBSD does not have linux headers. Wrap properly. X-Git-Tag: SQUID_3_1_5~14 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2beed14d672e215587247764304387e9b003dc4c;p=thirdparty%2Fsquid.git kFreeBSD does not have linux headers. Wrap properly. --- diff --git a/compat/fdsetsize.h b/compat/fdsetsize.h index a93c4e344f..e48b9b6310 100644 --- a/compat/fdsetsize.h +++ b/compat/fdsetsize.h @@ -40,7 +40,9 @@ #if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) #if SQUID_MAXFD > DEFAULT_FD_SETSIZE #include +#if HAVE_LINUX_POSIX_TYPES_H #include +#endif #undef __FD_SETSIZE #define __FD_SETSIZE SQUID_MAXFD #endif diff --git a/configure.in b/configure.in index 4546146475..ff83dff024 100644 --- a/configure.in +++ b/configure.in @@ -2189,6 +2189,7 @@ AC_CHECK_HEADERS( \ libc.h \ libgen.h \ limits.h \ + linux/posix_types.h \ linux/types.h \ machine/byte_swap.h \ malloc.h \