Update of /cvsroot/monetdb/pathfinder
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv13614

Modified Files:
      Tag: Feb2009
        configure.ag 
Log Message:
defining _POSIX_C_SOURCE was a bad idea

U configure.ag
Index: configure.ag
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/configure.ag,v
retrieving revision 1.144.2.6
retrieving revision 1.144.2.7
diff -u -d -r1.144.2.6 -r1.144.2.7
--- configure.ag        29 Apr 2009 10:34:10 -0000      1.144.2.6
+++ configure.ag        30 Apr 2009 09:45:04 -0000      1.144.2.7
@@ -633,12 +633,15 @@
 [AC_DEFINE(HAVE_CTIME_R3, 1, [Define if you have ctime_r(time_t*,char 
*buf,size_t s)])], [ctime_r3=no])
 AC_MSG_RESULT($ctime_r3)
 
-dnl  (At least) on (Open)Solaris (2.)11, 
/opt/csw/include/libxml2/libxml/xmlversion.h
-dnl  of (at least) libxml2 v2.6.26 seems to expect that _POSIX_C_SOURCE is 
defined,
-dnl  but it seems to be undefined when compiling with gcc (v3.4.3); hence we 
define it:
+dnl  On Solaris, libxml2 enables threading only when _REENTRANT, __MT__
+dnl  or _POSIX_C_SOURCE >= 199506L is defined.  The latter is only
+dnl  defined on POSIX compliant Solaris systems (latest of the latest
+dnl  as of this writing), hence defining that here would cause a
+dnl  redefinition error.  To work around it, we define __MT__ here, as
+dnl  _REENTRANT might also enable stuff in other software packages.
 case "$GCC-$host_os" in
 yes-solaris2.11)
-       AC_DEFINE(_POSIX_C_SOURCE, 199506L, [Compiler flag])
+       AC_DEFINE(__MT__, 1, [libxml2 enable threading compiler flag])
        ;;
 esac
 


------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to