From 32ed74b6ab1cb664155865e848e5a12185f81524 Mon Sep 17 00:00:00 2001 From: wessels <> Date: Fri, 24 Oct 1997 10:55:56 +0000 Subject: [PATCH] poll() workaround for linux by Oskar Pearson --- src/squid.h | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) 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 -- 2.47.2