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