[prev in list] [next in list] [prev in thread] [next in thread] 

List:       squid-users
Subject:    Re: linux kernel 2.2.x info [patch]
From:       Henrik Nordstrom <hno () hem ! passagen ! se>
Date:       1999-01-29 22:56:14
[Download RAW message or body]

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

["squid-2.2.PRE1.linux_2.2_poll.patch" (text/plain)]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic