apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From orlikow...@apache.org
Subject cvs commit: apr/build apr_hints.m4
Date Fri, 01 Jun 2001 00:35:50 GMT
orlikowski    01/05/31 17:35:49

  Modified:    build    apr_hints.m4
  Log:
  Linux needs these options for the posix rwlocks to work.
  Normally, _SVID_SOURCE and _BSD_SOURCE are defined by default.
  However, we must re-define them if we define _XOPEN_SOURCE, which is needed for the rwlock
definitions.
  
  Revision  Changes    Path
  1.14      +4 -2      apr/build/apr_hints.m4
  
  Index: apr_hints.m4
  ===================================================================
  RCS file: /home/cvs/apr/build/apr_hints.m4,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- apr_hints.m4	2001/05/13 11:03:59	1.13
  +++ apr_hints.m4	2001/06/01 00:35:48	1.14
  @@ -115,9 +115,11 @@
   	;;
       *-linux-*)
           case `uname -r` in
  -	    2.2* ) APR_ADDTO(CPPFLAGS, [-DLINUX=2])
  +	    2.2* ) APR_ADDTO(CPPFLAGS, [-DLINUX=2 -D_XOPEN_SOURCE=500])
  +	           APR_ADDTO(CPPFLAGS, [-D_BSD_SOURCE -D_SVID_SOURCE]) 
   	           ;;
  -	    2.0* ) APR_ADDTO(CPPFLAGS, [-DLINUX=2])
  +	    2.0* ) APR_ADDTO(CPPFLAGS, [-DLINUX=2 -D_XOPEN_SOURCE=500])
  +	           APR_ADDTO(CPPFLAGS, [-D_BSD_SOURCE -D_SVID_SOURCE])
   	           ;;
   	    1.* )  APR_ADDTO(CPPFLAGS, [-DLINUX=1])
   	           ;;
  
  
  

Mime
View raw message