apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig Rodrigues <rodr...@crodrigues.org>
Subject Re: [PATCH] KQueue AND sys_epoll Support for apr_pollset
Date Wed, 07 Jul 2004 18:59:47 GMT
On Wed, Jul 07, 2004 at 05:57:42PM +0100, Joe Orton wrote:
> > We should probably disable kqueue support in FreeBSD versions less
> > than 4.8 or so.
> 
> Gottapatch?



Index: configure.in
===================================================================
RCS file: /home/cvspublic/apr/configure.in,v
retrieving revision 1.595
diff -u -r1.595 configure.in
--- configure.in	7 Jul 2004 07:40:12 -0000	1.595
+++ configure.in	7 Jul 2004 18:55:01 -0000
@@ -636,7 +636,11 @@
 AC_SUBST(have_sigsuspend)
 AC_SUBST(have_sigwait)
 
-AC_CHECK_FUNCS(poll kqueue)
+AC_CHECK_FUNCS(poll)
+
+if test "$ac_cv_kqueue" != "no"; then
+  AC_CHECK_FUNCS(kqueue)
+fi
 
 # Check for the Linux epoll interface; epoll* may be available in libc
 # but return ENOSYS on a pre-2.6 kernel, so do a run-time check.
Index: build/apr_hints.m4
===================================================================
RCS file: /home/cvspublic/apr/build/apr_hints.m4,v
retrieving revision 1.64
diff -u -r1.64 apr_hints.m4
--- build/apr_hints.m4	4 Jul 2004 23:38:18 -0000	1.64
+++ build/apr_hints.m4	7 Jul 2004 18:55:01 -0000
@@ -146,6 +146,10 @@
           apr_cv_pthreads_cflags="-D_THREAD_SAFE -D_REENTRANT"
           APR_SETIFNULL(enable_threads, [no])
         fi
+        dnl There were kqueue bugs in earlier versions of FreeBSD
+        if test $os_version -lt "480000"; then
+          apr_cv_kqueue="no"
+        fi
 	;;
     *-next-nextstep*)
 	APR_SETIFNULL(CFLAGS, [-O])


-- 
Craig Rodrigues        
http://crodrigues.org
rodrigc@crodrigues.org

Mime
View raw message