Re: linux kernel 2.2.x info [patch]

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Fri, 29 Jan 1999 23:56:14 +0100

Dax Kelson wrote:

> Maybe a Squid hacker can adjust the configure script to use poll() by
> default if it is a linux box with kernel 2.2.x.

How about this? (you need to run autoconf after applying).

--
Henrik Nordstrom
Spare time Squid hacker

Index: squid/configure.in
diff -u squid/configure.in:1.1.1.28 squid/configure.in:1.1.1.28.2.1
--- squid/configure.in:1.1.1.28 Sun Jan 24 09:33:19 1999
+++ squid/configure.in Fri Jan 29 23:53:05 1999
@@ -865,8 +865,11 @@
                         # Henrik Nordstrom (hno@hem.passagen.se) 19980817
                         # poll is problematic on Linux. We disable it
                         # by default until Linux gets it right.
- echo "disabling poll for $host..."
- ac_cv_func_poll='no'
+ rev=`uname -r | awk -F. '{printf "%03d%03d",$1,$2}'`
+ if test $rev -lt 002002; then
+ echo "disabling poll for $host < 2.2..."
+ ac_cv_func_poll='no'
+ fi
                         ;;
                 [powerpc-ibm-aix4.1.*])
                         # Mike Laster (mlaster@metavillage.com) 19981021
Received on Fri Jan 29 1999 - 18:06:18 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:44:11 MST