diff options
Diffstat (limited to 'zconf.h.cmakein')
-rw-r--r-- | zconf.h.cmakein | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/zconf.h.cmakein b/zconf.h.cmakein index dd2d28a..af4e92e 100644 --- a/zconf.h.cmakein +++ b/zconf.h.cmakein | |||
@@ -401,24 +401,32 @@ typedef uLong FAR uLongf; | |||
401 | # endif | 401 | # endif |
402 | #endif | 402 | #endif |
403 | 403 | ||
404 | /* a little trick to accommodate both "#define _LARGEFILE64_SOURCE" and | 404 | /* accommodate both "#define _LARGEFILE64_SOURCE" and |
405 | * "#define _LARGEFILE64_SOURCE 1" as requesting 64-bit operations, (even | 405 | * "#define _LARGEFILE64_SOURCE 1" as requesting 64-bit operations, (even |
406 | * though the former does not conform to the LFS document), but considering | 406 | * though the former does not conform to the LFS document), but consider |
407 | * both "#undef _LARGEFILE64_SOURCE" and "#define _LARGEFILE64_SOURCE 0" as | 407 | * both "#undef _LARGEFILE64_SOURCE" and "#define _LARGEFILE64_SOURCE 0" as |
408 | * equivalently requesting no 64-bit operations | 408 | * equivalently requesting no 64-bit operations |
409 | */ | 409 | */ |
410 | #if -_LARGEFILE64_SOURCE - -1 == 1 | 410 | #if defined(LARGEFILE64_SOURCE) && _LARGEFILE64_SOURCE == 0 |
411 | # undef _LARGEFILE64_SOURCE | 411 | # undef _LARGEFILE64_SOURCE |
412 | #endif | 412 | #endif |
413 | 413 | ||
414 | #if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0 | 414 | #if defined(_LFS64_LARGEFILE) && _LFS64_LARGEFILE == 1 |
415 | # define Z_LARGE | 415 | # define Z_LFS64 |
416 | #endif | ||
417 | |||
418 | #if defined(_LARGEFILE64_SOURCE) && defined(Z_LFS64) | ||
419 | # define Z_LARGE64 | ||
420 | #endif | ||
421 | |||
422 | #if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64 && defined(Z_LFS64) | ||
423 | # define Z_WANT64 | ||
416 | #endif | 424 | #endif |
417 | 425 | ||
418 | #if defined(__WATCOMC__) && !defined(Z_HAVE_UNISTD_H) | 426 | #if defined(__WATCOMC__) && !defined(Z_HAVE_UNISTD_H) |
419 | # define Z_HAVE_UNISTD_H | 427 | # define Z_HAVE_UNISTD_H |
420 | #endif | 428 | #endif |
421 | #if (defined(Z_HAVE_UNISTD_H) || defined(Z_LARGE)) && !defined(Z_SOLO) | 429 | #if (defined(Z_HAVE_UNISTD_H) || defined(Z_LARGE64)) && !defined(Z_SOLO) |
422 | # include <unistd.h> /* for SEEK_* and off_t */ | 430 | # include <unistd.h> /* for SEEK_* and off_t */ |
423 | # ifdef VMS | 431 | # ifdef VMS |
424 | # include <unixio.h> /* for off_t */ | 432 | # include <unixio.h> /* for off_t */ |