From: Mark Adler Date: Sat, 18 Feb 2012 23:21:13 +0000 (-0800) Subject: Include unistd.h for Watcom C. X-Git-Tag: v1.2.7~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10fca844b1454ee19e28400a8267f72b0cccb591;p=thirdparty%2Fzlib-ng.git Include unistd.h for Watcom C. --- diff --git a/zconf.h b/zconf.h index 7f705dfb8..ad82e3b5c 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 9510eabda..6f964b8ea 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 7f705dfb8..ad82e3b5c 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