Skip to content

Commit 8d2fa94

Browse files
Copilot3dJan
andcommitted
Fix macOS build by including unistd.h in gzguts.h for non-Windows platforms
Co-authored-by: 3dJan <56254096+3dJan@users.noreply.github.com>
1 parent e95d00e commit 8d2fa94

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Libraries/zlib/Include/gzguts.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@
3838
# include <io.h>
3939
#endif
4040

41+
#if !defined(_WIN32)
42+
# include <unistd.h>
43+
#endif
44+
4145
#if defined(_WIN32)
4246
# define WIDECHAR
4347
#endif

0 commit comments

Comments
 (0)