From: Anatol Belski Date: Thu, 13 Oct 2016 11:08:16 +0000 (+0200) Subject: fix gettimeofday proto availability X-Git-Tag: php-7.1.0RC4~25 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c79f9a4e49d1e51a5569e60d66d3b7c6014e6135;p=php fix gettimeofday proto availability (cherry picked from commit 79f7d174d07dee4dde1f8eddaba6c741b26edeb3) --- 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; }