summaryrefslogtreecommitdiff
path: root/main/reentrancy.c
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2000-05-24 10:44:57 +0000
committerSascha Schumann <sas@php.net>2000-05-24 10:44:57 +0000
commitff4031585ae93d59cd129668326e91a25bc9ab17 (patch)
tree7246ab52ba64ea01c8071525fb7c78c801de86ce /main/reentrancy.c
parent3c61d015c28d053e3cfaa9e5fd439bfae66982d9 (diff)
downloadphp-git-ff4031585ae93d59cd129668326e91a25bc9ab17.tar.gz
Avoid building two versions of the time-related reentrant functions.
Diffstat (limited to 'main/reentrancy.c')
-rw-r--r--main/reentrancy.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/reentrancy.c b/main/reentrancy.c
index 8a135508a5..d9dd97fec8 100644
--- a/main/reentrancy.c
+++ b/main/reentrancy.c
@@ -59,6 +59,11 @@ static MUTEX_T reentrant_locks[NUMBER_OF_LOCKS];
#if defined(PHP_HPUX_TIME_R)
+#define HAVE_LOCALTIME_R 1
+#define HAVE_CTIME_R 1
+#define HAVE_ASCTIME_R 1
+#define HAVE_GMTIME_R 1
+
PHPAPI struct tm *php_localtime_r(const time_t *const timep, struct tm *p_tm)
{
if (localtime_r(timep, p_tm) == 0)