From 10fca844b1454ee19e28400a8267f72b0cccb591 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Sat, 18 Feb 2012 15:21:13 -0800 Subject: [PATCH] Include unistd.h for Watcom C. --- zconf.h | 3 +++ zconf.h.cmakein | 3 +++ zconf.h.in | 3 +++ 3 files changed, 9 insertions(+) diff --git a/zconf.h b/zconf.h index 7f705df..ad82e3b 100644 --- a/zconf.h +++ b/zconf.h @@ -413,6 +413,9 @@ typedef uLong FAR uLongf; # define Z_LARGE #endif +#if defined(__WATCOM__) && !defined(Z_HAVE_UNISTD_H) +# define Z_HAVE_UNISTD_H +#endif #if (defined(Z_HAVE_UNISTD_H) || defined(Z_LARGE)) && !defined(Z_SOLO) # include /* for SEEK_* and off_t */ # ifdef VMS diff --git a/zconf.h.cmakein b/zconf.h.cmakein index 9510eab..6f964b8 100644 --- a/zconf.h.cmakein +++ b/zconf.h.cmakein @@ -415,6 +415,9 @@ typedef uLong FAR uLongf; # define Z_LARGE #endif +#if defined(__WATCOM__) && !defined(Z_HAVE_UNISTD_H) +# define Z_HAVE_UNISTD_H +#endif #if (defined(Z_HAVE_UNISTD_H) || defined(Z_LARGE)) && !defined(Z_SOLO) # include /* for SEEK_* and off_t */ # ifdef VMS diff --git a/zconf.h.in b/zconf.h.in index 7f705df..ad82e3b 100644 --- a/zconf.h.in +++ b/zconf.h.in @@ -413,6 +413,9 @@ typedef uLong FAR uLongf; # define Z_LARGE #endif +#if defined(__WATCOM__) && !defined(Z_HAVE_UNISTD_H) +# define Z_HAVE_UNISTD_H +#endif #if (defined(Z_HAVE_UNISTD_H) || defined(Z_LARGE)) && !defined(Z_SOLO) # include /* for SEEK_* and off_t */ # ifdef VMS -- 2.7.4