Skip to content

Conversation

@arnabanimesh
Copy link

No description provided.

@Neustradamus
Copy link

@madler: Have you seen this PR?

Copy link

@guidomodarelli guidomodarelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add this change in gzlib.c

diff --git a/gzlib.c b/gzlib.c
index 55da46a..f1d85c3 100644
--- a/gzlib.c
+++ b/gzlib.c
@@ -4,6 +4,11 @@
  */
 
 #include "gzguts.h"
+#if defined( unix ) || defined( __unix ) || defined( __unix__ ) || \
+    (defined( __APPLE__ ) && defined( __MACH__ )) || \
+    HAVE_UNISTD_H
+#include <unistd.h>         /* lseek, read, write, close, chown, unlink, sleep, ftruncate, fsync */
+#endif
 
 #if defined(_WIN32) && !defined(__BORLANDC__)
 #  define LSEEK _lseeki64

@arnabanimesh
Copy link
Author

@guidomodarelli done

Copy link

@guidomodarelli guidomodarelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🟢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants