Include unistd.h for Watcom C.
authorMark Adler <madler@alumni.caltech.edu>
Sat, 18 Feb 2012 23:21:13 +0000 (15:21 -0800)
committerMark Adler <madler@alumni.caltech.edu>
Sat, 18 Feb 2012 23:37:37 +0000 (15:37 -0800)
zconf.h
zconf.h.cmakein
zconf.h.in

diff --git a/zconf.h b/zconf.h
index 7f705df..ad82e3b 100644 (file)
--- 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 <unistd.h>       /* for SEEK_* and off_t */
 #  ifdef VMS
index 9510eab..6f964b8 100644 (file)
@@ -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 <unistd.h>       /* for SEEK_* and off_t */
 #  ifdef VMS
index 7f705df..ad82e3b 100644 (file)
@@ -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 <unistd.h>       /* for SEEK_* and off_t */
 #  ifdef VMS