lol
1diff --git a/thirdparty/zlib/gzlib.c b/thirdparty/zlib/gzlib.c
2index 4105e6a..eae3a38 100644
3--- a/thirdparty/zlib/gzlib.c
4+++ b/thirdparty/zlib/gzlib.c
5@@ -3,6 +3,7 @@
6 * For conditions of distribution and use, see copyright notice in zlib.h
7 */
8
9+#include <unistd.h>
10 #include "gzguts.h"
11
12 #if defined(_WIN32) && !defined(__BORLANDC__) && !defined(__MINGW32__)
13diff --git a/thirdparty/zlib/gzread.c b/thirdparty/zlib/gzread.c
14index 956b91e..66089b6 100644
15--- a/thirdparty/zlib/gzread.c
16+++ b/thirdparty/zlib/gzread.c
17@@ -3,6 +3,7 @@
18 * For conditions of distribution and use, see copyright notice in zlib.h
19 */
20
21+#include <unistd.h>
22 #include "gzguts.h"
23
24 /* Local functions */
25diff --git a/thirdparty/zlib/gzwrite.c b/thirdparty/zlib/gzwrite.c
26index c7b5651..e685f3e 100644
27--- a/thirdparty/zlib/gzwrite.c
28+++ b/thirdparty/zlib/gzwrite.c
29@@ -3,6 +3,7 @@
30 * For conditions of distribution and use, see copyright notice in zlib.h
31 */
32
33+#include <unistd.h>
34 #include "gzguts.h"
35
36 /* Local functions */
37