summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/standard/lcg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/standard/lcg.c b/ext/standard/lcg.c
index a76725ec38..c5f203ff42 100644
--- a/ext/standard/lcg.c
+++ b/ext/standard/lcg.c
@@ -25,7 +25,9 @@
#include <unistd.h>
#endif
-#if HAVE_SYS_TIME_H
+#ifdef PHP_WIN32
+#include "win32/time.h"
+#else
#include <sys/time.h>
#endif