From 79f7d174d07dee4dde1f8eddaba6c741b26edeb3 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Thu, 13 Oct 2016 13:08:16 +0200 Subject: [PATCH] fix gettimeofday proto availability --- ext/date/php_date.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/date/php_date.c b/ext/date/php_date.c index aed0dc94b2..67805c1f02 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -29,7 +29,11 @@ #include "php_date.h" #include "zend_interfaces.h" #include "lib/timelib.h" +#ifndef PHP_WIN32 #include +#else +#include "win32/time.h" +#endif #ifdef PHP_WIN32 static __inline __int64 php_date_llabs( __int64 i ) { return i >= 0? i: -i; } -- 2.50.1