php4-beta | 200004
Date: 04/01/00
- Next message: Sam Ruby: "[PHP4BETA] cvs: /php4/ext/java config.m4"
- Previous message: Sascha Schumann: "[PHP4BETA] cvs: /php4 TODO"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
sas Sat Apr 1 08:01:04 2000 EDT
Modified files:
/php4 acinclude.m4
Log:
Fix the HPUX 10.20 check for non-standard reentrant time functions
Index: php4/acinclude.m4
diff -u php4/acinclude.m4:1.70 php4/acinclude.m4:1.71
--- php4/acinclude.m4:1.70 Thu Mar 30 07:00:30 2000
+++ php4/acinclude.m4 Sat Apr 1 08:00:34 2000
@@ -1,4 +1,4 @@
-dnl $Id: acinclude.m4,v 1.70 2000/03/30 15:00:30 sas Exp $
+dnl $Id: acinclude.m4,v 1.71 2000/04/01 16:00:34 sas Exp $
dnl
dnl This file contains local autoconf functions.
@@ -57,16 +57,17 @@
AC_CACHE_CHECK(for time_r type, ac_cv_time_r_type,[
AC_TRY_RUN([
#include <time.h>
+#include <stdlib.h>
main() {
char buf[27];
struct tm t;
time_t old = 0;
-int r;
+int r, s;
-gmtime_r(&old, &t);
+s = gmtime_r(&old, &t);
r = (int) asctime_r(&t, buf, 26);
-if (r == -1 || (r > 0 && r <= 26)) exit(0);
+if (r == s && s == 0) exit(0);
exit(1);
}
],[
-- PHP 4.0 Beta Mailing List <http://www.php.net/version4/> To unsubscribe, e-mail: php4beta-unsubscribe <email protected> For additional commands, e-mail: php4beta-help <email protected> To contact the list administrators, e-mail: php4beta-admin <email protected>
- Next message: Sam Ruby: "[PHP4BETA] cvs: /php4/ext/java config.m4"
- Previous message: Sascha Schumann: "[PHP4BETA] cvs: /php4 TODO"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

