From: Sascha Schumann Date: Fri, 3 Dec 1999 15:12:20 +0000 (+0000) Subject: Solaris needs -D_REENTRANT to define prototypes for localtime_r etc. X-Git-Tag: PRE_RETURN_REF_PATCH~108 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f19426e4120592384506d2b2c9520918e394cc76;p=php Solaris needs -D_REENTRANT to define prototypes for localtime_r etc. --- diff --git a/configure.in b/configure.in index 16bdd78582..491060df9d 100644 --- a/configure.in +++ b/configure.in @@ -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