diff options
author | jorton <jorton@13f79535-47bb-0310-9956-ffa450edef68> | 2004-09-14 20:56:32 +0000 |
---|---|---|
committer | jorton <jorton@13f79535-47bb-0310-9956-ffa450edef68> | 2004-09-14 20:56:32 +0000 |
commit | b4815ca76870fc71edc42760344db588defeff58 (patch) | |
tree | d119216203a760eb97dbece72a9d8d55b879cc44 /build | |
parent | 40171930c29048beb2245403999fa6dd4a42a0dd (diff) | |
download | libapr-b4815ca76870fc71edc42760344db588defeff58.tar.gz |
* build/apr_hints.m4 (APR_PRELOAD): NetBSD fcntl() confounds
O_NONBLOCK inheritance test, so work around it.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/APR_0_9_BRANCH@65329 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build')
-rw-r--r-- | build/apr_hints.m4 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/build/apr_hints.m4 b/build/apr_hints.m4 index d62bb0a69..54bd8de4a 100644 --- a/build/apr_hints.m4 +++ b/build/apr_hints.m4 @@ -131,12 +131,14 @@ dnl # Not a problem in 10.20. Otherwise, who knows? ;; *-openbsd*) APR_ADDTO(CPPFLAGS, [-D_POSIX_THREADS]) - # binding to an ephemeral port fails on OpenBSD so override - # the test for O_NONBLOCK inheritance across accept(). + # getsockname() reports the wrong address on a socket + # bound to an ephmeral port so the test fails. APR_SETIFNULL(ac_cv_o_nonblock_inherited, [yes]) ;; *-netbsd*) APR_ADDTO(CPPFLAGS, [-DNETBSD]) + # fcntl() lies about O_NONBLOCK on an accept()ed socket (PR kern/26950) + APR_SETIFNULL(ac_cv_o_nonblock_inherited, [yes]) ;; *-freebsd*) case $host in |