summaryrefslogtreecommitdiff
path: root/external/zlib/missinginclude.patch
blob: 91a63288bbf1bf5bb3280465a702b63279314278 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
--- gzlib.c
+++ gzlib.c
@@ -3,6 +3,9 @@
  * For conditions of distribution and use, see copyright notice in zlib.h
  */
 
+#if !defined _WIN32
+#include <unistd.h>
+#endif
 #include "gzguts.h"
 
 #if defined(_WIN32) && !defined(__BORLANDC__)
--- gzread.c
+++ gzread.c
@@ -3,6 +3,9 @@
  * For conditions of distribution and use, see copyright notice in zlib.h
  */
 
+#if !defined _WIN32
+#include <unistd.h>
+#endif
 #include "gzguts.h"
 
 /* Use read() to load a buffer -- return -1 on error, otherwise 0.  Read from
--- gzwrite.c
+++ gzwrite.c
@@ -3,6 +3,9 @@
  * For conditions of distribution and use, see copyright notice in zlib.h
  */
 
+#if !defined _WIN32
+#include <unistd.h>
+#endif
 #include "gzguts.h"
 
 /* Initialize state for writing a gzip file.  Mark initialization by setting