You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by jo...@apache.org on 2004/09/14 22:56:32 UTC

cvs commit: apr/build apr_hints.m4

jorton      2004/09/14 13:56:32

  Modified:    build    Tag: APR_0_9_BRANCH apr_hints.m4
  Log:
  * build/apr_hints.m4 (APR_PRELOAD): NetBSD fcntl() confounds
  O_NONBLOCK inheritance test, so work around it.
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.53.2.10 +4 -2      apr/build/apr_hints.m4
  
  Index: apr_hints.m4
  ===================================================================
  RCS file: /home/cvs/apr/build/apr_hints.m4,v
  retrieving revision 1.53.2.9
  retrieving revision 1.53.2.10
  diff -d -w -u -r1.53.2.9 -r1.53.2.10
  --- apr_hints.m4	28 Aug 2004 16:18:34 -0000	1.53.2.9
  +++ apr_hints.m4	14 Sep 2004 20:56:32 -0000	1.53.2.10
  @@ -131,12 +131,14 @@
           ;;
       *-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