com php-src: C99 complain fix: ext/opcache/zend_file_cache .c
| From: | Anatol Belski | Date: | Wed, 11 Nov 2015 09:56:56 +0000 |
| Subject: | com php-src: C99 complain fix: ext/opcache/zend_file_cache .c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-89746@lists.php.net to get a copy of this message | ||
Commit: 7beb0d449f417b568e70f5550e49027ee67ea5db
Author: Reeze Xia <reeze@php.net> Sat, 7 Nov 2015 22:15:19 +0800
Committer: Anatol Belski <ab@php.net> Wed, 11 Nov 2015 10:56:56 +0100
Parents: 2f8b6ebddc3dff2e8889fd54c5006c4007f8a29b
Branches: PHP-7.0.0
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=7beb0d449f417b568e70f5550e49027ee67ea5db
Log:
C99 complain fix
Changed paths:
M ext/opcache/zend_file_cache.c
Diff:
diff --git a/ext/opcache/zend_file_cache.c b/ext/opcache/zend_file_cache.c
index d1ea0a4..7c615e9 100644
--- a/ext/opcache/zend_file_cache.c
+++ b/ext/opcache/zend_file_cache.c
@@ -36,6 +36,10 @@
#include <sys/stat.h>
#include <fcntl.h>
+#if HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
#ifdef HAVE_SYS_UIO_H
# include <sys/uio.h>
#endif