We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a24d46 commit 3d0e522Copy full SHA for 3d0e522
ext/opcache/ZendAccelerator.c
@@ -76,7 +76,12 @@ typedef int gid_t;
76
#endif
77
#include <fcntl.h>
78
#include <signal.h>
79
+
80
+#ifndef PHP_WIN32
81
#include <time.h>
82
+#else
83
+#include "win32/time.h"
84
+#endif
85
86
#ifndef ZEND_WIN32
87
# include <sys/types.h>
@@ -1167,7 +1172,7 @@ zend_result validate_timestamp_and_record(zend_persistent_script *persistent_scr
1167
1172
double revalidate_reference_time = 0.0;
1168
1173
1169
1174
if (ZCG(cli_mode)) {
1170
-#ifdef HAVE_GETTIMEOFDAY
1175
+#if HAVE_GETTIMEOFDAY
1171
1176
struct timeval tp = {0};
1177
1178
if (UNEXPECTED(gettimeofday(&tp, NULL) != 0)) {
0 commit comments