From 37b67d45d1deb67d125e7c2cdb3d3d834753ac4d Mon Sep 17 00:00:00 2001 From: Arnab Animesh Das Date: Thu, 2 Jan 2025 03:40:17 +0530 Subject: [PATCH] Add unistd.h in gzlib.c --- gzlib.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gzlib.c b/gzlib.c index baa3e79d..7b751da4 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 /* lseek, read, write, close, chown, unlink, sleep, ftruncate, fsync */ +#endif #if defined(__DJGPP__) # define LSEEK llseek