summaryrefslogtreecommitdiff
path: root/ext/zip
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2016-12-13 13:22:09 +0100
committerAnatol Belski <ab@php.net>2016-12-13 13:22:09 +0100
commit12c51c2f9a23678e5ba92e79481db8c6eb166e04 (patch)
tree3e7f08f7eb5daea1ac171d13c2706a4d8e32d119 /ext/zip
parent6648c4ca18608ad964f254512765e5a319d06dea (diff)
downloadphp-git-12c51c2f9a23678e5ba92e79481db8c6eb166e04.tar.gz
check for header availability
Diffstat (limited to 'ext/zip')
-rw-r--r--ext/zip/lib/mkstemp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/zip/lib/mkstemp.c b/ext/zip/lib/mkstemp.c
index 57d8848491..ccd8da855e 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