]> granicus.if.org Git - php/commitdiff
Solaris needs -D_REENTRANT to define prototypes for localtime_r etc.
authorSascha Schumann <sas@php.net>
Fri, 3 Dec 1999 15:12:20 +0000 (15:12 +0000)
committerSascha Schumann <sas@php.net>
Fri, 3 Dec 1999 15:12:20 +0000 (15:12 +0000)
configure.in

index 16bdd7858267a8dadc180f583a5539e9e0f65d0d..491060df9d4729706466125f22373991c80e149b 100644 (file)
@@ -684,7 +684,7 @@ PHP_REGEX
 dnl If we are using gcc and the user has not specified CFLAGS, add -O2.
 test -n "$auto_cflags" && test -n "$GCC" && CFLAGS="$CFLAGS -O2"
 
-CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
+CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT"
 
 export CPPFLAGS
 
@@ -693,7 +693,6 @@ if test "$PHP_THREAD_SAFETY" = "yes" || test "$PHP_EXPERIMENTAL_ZTS" = "yes"; th
   TSRM_LIB='TSRM/libtsrm.la'
   TSRM_DIR=TSRM
   AC_DEFINE(ZTS)
-  CPPFLAGS="$CPPFLAGS -D_REENTRANT"
   INCLUDES="$INCLUDES -I\$(top_builddir)/TSRM -I\$(top_srcdir)/TSRM"
   PHP_THREAD_SAFETY=yes
 else