From 19f8551627d2a89b910d961fc9c7f626f3af7b21 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Sun, 9 Oct 2022 17:32:50 -0700 Subject: Don't try to include unistd.h on Windows with LLVM. --- zconf.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'zconf.h') diff --git a/zconf.h b/zconf.h index c9fc52b..bf977d3 100644 --- a/zconf.h +++ b/zconf.h @@ -473,11 +473,18 @@ typedef uLong FAR uLongf; # undef _LARGEFILE64_SOURCE #endif -#if defined(__WATCOMC__) && !defined(Z_HAVE_UNISTD_H) -# define Z_HAVE_UNISTD_H +#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) +# define Z_HAVE_UNISTD_H +# endif #endif #ifndef Z_SOLO -# if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE) +# if defined(Z_HAVE_UNISTD_H) # include /* for SEEK_*, off_t, and _LFS64_LARGEFILE */ # ifdef VMS # include /* for off_t */ -- cgit v1.2.1