Skip to content

Commit

Permalink
* build/apr_hints.m4: Reenable kqueue on current versions of Mac OS X,
Browse files Browse the repository at this point in the history
  as it seems to work now that we've fixed the bug in our kqueue code.


git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@386202 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Garrett Rooney committed Mar 15, 2006
1 parent 847ad00 commit 43d9afa
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions build/apr_hints.m4
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,21 @@ dnl # Not a problem in 10.20. Otherwise, who knows?
APR_ADDTO(CPPFLAGS, [-DRHAPSODY])
;;
*-apple-darwin*)
if test -x /usr/sbin/sysctl; then
os_version=`/usr/sbin/sysctl -n kern.osrelease | sed 's/\.//g'`
else
os_version=000
fi
APR_ADDTO(CPPFLAGS, [-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp])
APR_SETIFNULL(apr_posixsem_is_global, [yes])
APR_SETIFNULL(ac_cv_func_poll, [no]) # See issue 34332
# Broken in 10.4.x
APR_SETIFNULL(ac_cv_func_kqueue, [no])
# kqueue has been confirmed to work in OS X 10.4.5, its status in
# earlier OS X releases is not currently known, so it is disabled.
if test $os_version -lt "850"; then
APR_SETIFNULL(ac_cv_func_kqueue, [no])
fi
;;
*-dec-osf*)
APR_ADDTO(CPPFLAGS, [-DOSF1])
Expand Down

0 comments on commit 43d9afa

Please sign in to comment.