diff options
Diffstat (limited to 'zconf.h.cmakein')
| -rw-r--r-- | zconf.h.cmakein | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/zconf.h.cmakein b/zconf.h.cmakein index cf9cc24..18dd770 100644 --- a/zconf.h.cmakein +++ b/zconf.h.cmakein | |||
| @@ -317,7 +317,7 @@ | |||
| 317 | # endif | 317 | # endif |
| 318 | #endif | 318 | #endif |
| 319 | 319 | ||
| 320 | #ifdef HAVE_VISIBILITY_PRAGMA | 320 | #ifndef NO_VIZ |
| 321 | # define ZEXTERN __attribute__((visibility ("default"))) extern | 321 | # define ZEXTERN __attribute__((visibility ("default"))) extern |
| 322 | #endif | 322 | #endif |
| 323 | 323 | ||
| @@ -370,6 +370,16 @@ typedef uLong FAR uLongf; | |||
| 370 | # include <sys/types.h> /* for off_t */ | 370 | # include <sys/types.h> /* for off_t */ |
| 371 | #endif | 371 | #endif |
| 372 | 372 | ||
| 373 | /* a little trick to accommodate both "#define _LARGEFILE64_SOURCE" and | ||
| 374 | * "#define _LARGEFILE64_SOURCE 1" as requesting 64-bit operations, (even | ||
| 375 | * though the former does not conform to the LFS document), but considering | ||
| 376 | * both "#undef _LARGEFILE64_SOURCE" and "#define _LARGEFILE64_SOURCE 0" as | ||
| 377 | * equivalently requesting no 64-bit operations | ||
| 378 | */ | ||
| 379 | #if -_LARGEFILE64_SOURCE - -1 == 1 | ||
| 380 | # undef _LARGEFILE64_SOURCE | ||
| 381 | #endif | ||
| 382 | |||
| 373 | #if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE) | 383 | #if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE) |
| 374 | # include <unistd.h> /* for SEEK_* and off_t */ | 384 | # include <unistd.h> /* for SEEK_* and off_t */ |
| 375 | # ifdef VMS | 385 | # ifdef VMS |
