mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-08-23 15:23:44 +02:00
14 lines
375 B
Diff
14 lines
375 B
Diff
# Includes unistd.h at the top of gzguts.h when not targeting Windows to fix builds for game consoles.
|
|
|
|
--- a/gzguts.h
|
|
+++ b/gzguts.h
|
|
@@ -2,6 +2,9 @@
|
|
* Copyright (C) 2004-2024 Mark Adler
|
|
* For conditions of distribution and use, see copyright notice in zlib.h
|
|
*/
|
|
+#ifndef _WIN32
|
|
+# include <unistd.h>
|
|
+#endif
|
|
|
|
#ifdef _LARGEFILE64_SOURCE
|
|
# ifndef _LARGEFILE_SOURCE
|