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