On Fri, Jun 01, 2001 at 12:35:50AM -0000, [EMAIL PROTECTED] wrote: > 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]) > ;;
Won't this break 2.4? I talked to Roy before I left today and I might add something that does a AC_TRY_COMPILE (after seeing if pthread_rwlock_init is present) and punt from there (i.e. add these CPPFLAGS if the compile fails). I'm not entirely sure if I'll get around to it tonight or not. -- justin
