From: wessels <> Date: Fri, 24 Oct 1997 10:55:56 +0000 (+0000) Subject: poll() workaround for linux by Oskar Pearson X-Git-Tag: SQUID_3_0_PRE1~4702 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=32ed74b6ab1cb664155865e848e5a12185f81524;p=thirdparty%2Fsquid.git poll() workaround for linux by Oskar Pearson --- diff --git a/src/squid.h b/src/squid.h index 23577d6157..780c466f96 100644 --- a/src/squid.h +++ b/src/squid.h @@ -1,6 +1,6 @@ /* - * $Id: squid.h,v 1.130 1997/10/16 19:22:40 kostas Exp $ + * $Id: squid.h,v 1.131 1997/10/24 04:55:56 wessels Exp $ * * AUTHOR: Duane Wessels * @@ -163,15 +163,22 @@ #if HAVE_GETOPT_H #include #endif -#if HAVE_POLL_H -#include -#endif #if HAVE_ASSERT_H #include #else #define assert(X) ((void)0) #endif +/* With linux, poll.h might not be available, even though poll(2) is */ +/* Oskar Pearson */ +#if HAVE_POLL +#if HAVE_POLL_H && defined(_SQUID_LINUX_) +#include +#else +#undef HAVE_POLL +#endif /* end of Linux workaround */ +#endif /* HAVE_POLL */ + #ifdef __STDC__ #include #else