diff options
Diffstat (limited to '')
-rw-r--r-- | zconf.h.cmakein | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/zconf.h.cmakein b/zconf.h.cmakein index c08d177..81a7b7a 100644 --- a/zconf.h.cmakein +++ b/zconf.h.cmakein | |||
@@ -411,6 +411,21 @@ typedef uLong FAR uLongf; | |||
411 | # undef _LARGEFILE64_SOURCE | 411 | # undef _LARGEFILE64_SOURCE |
412 | #endif | 412 | #endif |
413 | 413 | ||
414 | #if defined(__WATCOMC__) && !defined(Z_HAVE_UNISTD_H) | ||
415 | # define Z_HAVE_UNISTD_H | ||
416 | #endif | ||
417 | #ifndef Z_SOLO | ||
418 | # if defined(Z_HAVE_UNISTD_H) || defined(LARGEFILE64_SOURCE) | ||
419 | # include <unistd.h> /* for SEEK_*, off_t, and _LFS64_LARGEFILE */ | ||
420 | # ifdef VMS | ||
421 | # include <unixio.h> /* for off_t */ | ||
422 | # endif | ||
423 | # ifndef z_off_t | ||
424 | # define z_off_t off_t | ||
425 | # endif | ||
426 | # endif | ||
427 | #endif | ||
428 | |||
414 | #if defined(_LFS64_LARGEFILE) && _LFS64_LARGEFILE-0 | 429 | #if defined(_LFS64_LARGEFILE) && _LFS64_LARGEFILE-0 |
415 | # define Z_LFS64 | 430 | # define Z_LFS64 |
416 | #endif | 431 | #endif |
@@ -423,19 +438,6 @@ typedef uLong FAR uLongf; | |||
423 | # define Z_WANT64 | 438 | # define Z_WANT64 |
424 | #endif | 439 | #endif |
425 | 440 | ||
426 | #if defined(__WATCOMC__) && !defined(Z_HAVE_UNISTD_H) | ||
427 | # define Z_HAVE_UNISTD_H | ||
428 | #endif | ||
429 | #if (defined(Z_HAVE_UNISTD_H) || defined(Z_LARGE64)) && !defined(Z_SOLO) | ||
430 | # include <unistd.h> /* for SEEK_* and off_t */ | ||
431 | # ifdef VMS | ||
432 | # include <unixio.h> /* for off_t */ | ||
433 | # endif | ||
434 | # ifndef z_off_t | ||
435 | # define z_off_t off_t | ||
436 | # endif | ||
437 | #endif | ||
438 | |||
439 | #if !defined(SEEK_SET) && !defined(Z_SOLO) | 441 | #if !defined(SEEK_SET) && !defined(Z_SOLO) |
440 | # define SEEK_SET 0 /* Seek from beginning of file. */ | 442 | # define SEEK_SET 0 /* Seek from beginning of file. */ |
441 | # define SEEK_CUR 1 /* Seek from current position. */ | 443 | # define SEEK_CUR 1 /* Seek from current position. */ |
@@ -446,7 +448,7 @@ typedef uLong FAR uLongf; | |||
446 | # define z_off_t long | 448 | # define z_off_t long |
447 | #endif | 449 | #endif |
448 | 450 | ||
449 | #if !defined(_WIN32) && (defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0) | 451 | #if !defined(_WIN32) && defined(Z_LARGE64) |
450 | # define z_off64_t off64_t | 452 | # define z_off64_t off64_t |
451 | #else | 453 | #else |
452 | # if defined(_WIN32) && !defined(__GNUC__) && !defined(Z_SOLO) | 454 | # if defined(_WIN32) && !defined(__GNUC__) && !defined(Z_SOLO) |