com php-src: fix gettimeofday proto availability: ext/date/php _date.c
| From: | Anatol Belski | Date: | Fri, 14 Oct 2016 00:03:02 +0000 |
| Subject: | com php-src: fix gettimeofday proto availability: ext/date/php _date.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-95036@lists.php.net to get a copy of this message | ||
Commit: c79f9a4e49d1e51a5569e60d66d3b7c6014e6135
Author: Anatol Belski <ab@php.net> Thu, 13 Oct 2016 13:08:16 +0200
Parents: 086491555022b3b0ec59d26c6442a302171666ba
Branches: PHP-7.1
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c79f9a4e49d1e51a5569e60d66d3b7c6014e6135
Log:
fix gettimeofday proto availability
(cherry picked from commit 79f7d174d07dee4dde1f8eddaba6c741b26edeb3)
Changed paths:
M ext/date/php_date.c
Diff:
diff --git a/ext/date/php_date.c b/ext/date/php_date.c
index aed0dc9..67805c1 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 <time.h>
+#else
+#include "win32/time.h"
+#endif
#ifdef PHP_WIN32
static __inline __int64 php_date_llabs( __int64 i ) { return i >= 0? i: -i; }