From 6425b967cd7da4797a7ef9e1da8dcb86c258ce78 Mon Sep 17 00:00:00 2001 From: wessels <> Date: Wed, 31 Dec 1997 11:58:04 +0000 Subject: [PATCH] From: Stewart Forster The patch given by Oskar Pearson was too Linux-centric and ignored all other OS's desires to use poll(). The corrected business is below. --- src/squid.h | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/squid.h b/src/squid.h index 2faaa01815..96840f693b 100644 --- a/src/squid.h +++ b/src/squid.h @@ -1,6 +1,6 @@ /* - * $Id: squid.h,v 1.145 1997/12/21 11:21:11 kostas Exp $ + * $Id: squid.h,v 1.146 1997/12/31 04:58:04 wessels Exp $ * * AUTHOR: Duane Wessels * @@ -170,13 +170,19 @@ #define assert(X) ((void)0) #endif -/* With linux, poll.h might not be available, even though poll(2) is */ -/* Oskar Pearson */ +/* + * With linux and other systems, poll.h might not be available, + * even though poll(2) is. + * -- Oskar Pearson + * -- Stewart Forster + */ #if HAVE_POLL -#if HAVE_POLL_H && defined(_SQUID_LINUX_) +#if defined(_SQUID_LINUX_) +#if HAVE_POLL_H #include -#else +#else /* HAVE_POLL_H */ #undef HAVE_POLL +#endif /* HAVE_POLL_H */ #endif /* end of Linux workaround */ #endif /* HAVE_POLL */ -- 2.47.3