From c983609168d899e7ad29cd1878abac8c9282c6ac Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Sat, 10 Feb 2024 19:59:11 -0800 Subject: [PATCH] Include unistd.h on DJGPP. --- zconf.h | 8 ++------ zconf.h.cmakein | 8 ++------ zconf.h.in | 8 ++------ 3 files changed, 6 insertions(+), 18 deletions(-) diff --git a/zconf.h b/zconf.h index 62adc8d84..0a9f22c11 100644 --- a/zconf.h +++ b/zconf.h @@ -470,12 +470,8 @@ typedef uLong FAR uLongf; #endif #ifndef Z_HAVE_UNISTD_H -# ifdef __WATCOMC__ -# define Z_HAVE_UNISTD_H -# endif -#endif -#ifndef Z_HAVE_UNISTD_H -# if defined(_LARGEFILE64_SOURCE) && !defined(_WIN32) +# if defined(__WATCOMC__) || defined(__GO32__) || \ + (defined(_LARGEFILE64_SOURCE) && !defined(_WIN32)) # define Z_HAVE_UNISTD_H # endif #endif diff --git a/zconf.h.cmakein b/zconf.h.cmakein index 0abe3bc9d..a5cb28891 100644 --- a/zconf.h.cmakein +++ b/zconf.h.cmakein @@ -472,12 +472,8 @@ typedef uLong FAR uLongf; #endif #ifndef Z_HAVE_UNISTD_H -# ifdef __WATCOMC__ -# define Z_HAVE_UNISTD_H -# endif -#endif -#ifndef Z_HAVE_UNISTD_H -# if defined(_LARGEFILE64_SOURCE) && !defined(_WIN32) +# if defined(__WATCOMC__) || defined(__GO32__) || \ + (defined(_LARGEFILE64_SOURCE) && !defined(_WIN32)) # define Z_HAVE_UNISTD_H # endif #endif diff --git a/zconf.h.in b/zconf.h.in index 62adc8d84..0a9f22c11 100644 --- a/zconf.h.in +++ b/zconf.h.in @@ -470,12 +470,8 @@ typedef uLong FAR uLongf; #endif #ifndef Z_HAVE_UNISTD_H -# ifdef __WATCOMC__ -# define Z_HAVE_UNISTD_H -# endif -#endif -#ifndef Z_HAVE_UNISTD_H -# if defined(_LARGEFILE64_SOURCE) && !defined(_WIN32) +# if defined(__WATCOMC__) || defined(__GO32__) || \ + (defined(_LARGEFILE64_SOURCE) && !defined(_WIN32)) # define Z_HAVE_UNISTD_H # endif #endif