Skip to content

Commit 5dd6d36

Browse files
falken42claude
andcommitted
[hyperdrive] add unistd.h include for read()/write()/close()
The _POSIX_C_SOURCE define alone is insufficient when a precompiled header includes stdio.h before gzguts.h - the feature test macro has no effect after headers are already processed. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent da607da commit 5dd6d36

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

gzguts.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@
4949
#if defined(__TURBOC__) || defined(_MSC_VER) || defined(_WIN32)
5050
# include <io.h>
5151
# include <sys/stat.h>
52+
#else
53+
# include <unistd.h> /* [hyperdrive]: needed for read()/write()/close() */
5254
#endif
5355

5456
#if defined(_WIN32) && !defined(WIDECHAR)

0 commit comments

Comments
 (0)