com php-src: check for header availability: ext/zip/lib/mkstemp.c
| From: | Anatol Belski | Date: | Tue, 13 Dec 2016 12:22:09 +0000 |
| Subject: | com php-src: check for header availability: ext/zip/lib/mkstemp.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-96320@lists.php.net to get a copy of this message | ||
Commit: 12c51c2f9a23678e5ba92e79481db8c6eb166e04
Author: Anatol Belski <ab@php.net> Tue, 13 Dec 2016 13:22:09 +0100
Parents: 6648c4ca18608ad964f254512765e5a319d06dea
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=12c51c2f9a23678e5ba92e79481db8c6eb166e04
Log:
check for header availability
Changed paths:
M ext/zip/lib/mkstemp.c
Diff:
diff --git a/ext/zip/lib/mkstemp.c b/ext/zip/lib/mkstemp.c
index 57d8848..ccd8da8 100644
--- a/ext/zip/lib/mkstemp.c
+++ b/ext/zip/lib/mkstemp.c
@@ -43,7 +43,9 @@
#endif
#include <stdio.h>
#include <stdlib.h>
+#ifdef _WIN32
#include <unistd.h>
+#endif
#ifndef O_BINARY
#define O_BINARY 0