aboutsummaryrefslogtreecommitdiff
path: root/zconf.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--zconf.h7
-rw-r--r--zconf.h.cmakein7
-rw-r--r--zconf.h.in7
3 files changed, 6 insertions, 15 deletions
diff --git a/zconf.h b/zconf.h
index 5888024..6ad8a04 100644
--- a/zconf.h
+++ b/zconf.h
@@ -364,7 +364,7 @@ typedef uLong FAR uLongf;
364# define Z_HAVE_UNISTD_H 364# define Z_HAVE_UNISTD_H
365#endif 365#endif
366 366
367#ifdef Z_HAVE_UNISTD_H 367#if defined(Z_HAVE_UNISTD_H) || _LARGEFILE64_SOURCE == 1
368# include <sys/types.h> /* for off_t */ 368# include <sys/types.h> /* for off_t */
369# include <unistd.h> /* for SEEK_* and off_t */ 369# include <unistd.h> /* for SEEK_* and off_t */
370# ifdef VMS 370# ifdef VMS
@@ -375,15 +375,12 @@ typedef uLong FAR uLongf;
375# endif 375# endif
376#endif 376#endif
377 377
378#ifdef _LARGEFILE64_SOURCE
379# include <sys/types.h>
380#endif
381
382#ifndef SEEK_SET 378#ifndef SEEK_SET
383# define SEEK_SET 0 /* Seek from beginning of file. */ 379# define SEEK_SET 0 /* Seek from beginning of file. */
384# define SEEK_CUR 1 /* Seek from current position. */ 380# define SEEK_CUR 1 /* Seek from current position. */
385# define SEEK_END 2 /* Set file pointer to EOF plus "offset" */ 381# define SEEK_END 2 /* Set file pointer to EOF plus "offset" */
386#endif 382#endif
383
387#ifndef z_off_t 384#ifndef z_off_t
388# define z_off_t long 385# define z_off_t long
389#endif 386#endif
diff --git a/zconf.h.cmakein b/zconf.h.cmakein
index eec8ab0..fcd5710 100644
--- a/zconf.h.cmakein
+++ b/zconf.h.cmakein
@@ -366,7 +366,7 @@ typedef uLong FAR uLongf;
366# define Z_HAVE_UNISTD_H 366# define Z_HAVE_UNISTD_H
367#endif 367#endif
368 368
369#ifdef Z_HAVE_UNISTD_H 369#if defined(Z_HAVE_UNISTD_H) || _LARGEFILE64_SOURCE == 1
370# include <sys/types.h> /* for off_t */ 370# include <sys/types.h> /* for off_t */
371# include <unistd.h> /* for SEEK_* and off_t */ 371# include <unistd.h> /* for SEEK_* and off_t */
372# ifdef VMS 372# ifdef VMS
@@ -377,15 +377,12 @@ typedef uLong FAR uLongf;
377# endif 377# endif
378#endif 378#endif
379 379
380#ifdef _LARGEFILE64_SOURCE
381# include <sys/types.h>
382#endif
383
384#ifndef SEEK_SET 380#ifndef SEEK_SET
385# define SEEK_SET 0 /* Seek from beginning of file. */ 381# define SEEK_SET 0 /* Seek from beginning of file. */
386# define SEEK_CUR 1 /* Seek from current position. */ 382# define SEEK_CUR 1 /* Seek from current position. */
387# define SEEK_END 2 /* Set file pointer to EOF plus "offset" */ 383# define SEEK_END 2 /* Set file pointer to EOF plus "offset" */
388#endif 384#endif
385
389#ifndef z_off_t 386#ifndef z_off_t
390# define z_off_t long 387# define z_off_t long
391#endif 388#endif
diff --git a/zconf.h.in b/zconf.h.in
index 5888024..6ad8a04 100644
--- a/zconf.h.in
+++ b/zconf.h.in
@@ -364,7 +364,7 @@ typedef uLong FAR uLongf;
364# define Z_HAVE_UNISTD_H 364# define Z_HAVE_UNISTD_H
365#endif 365#endif
366 366
367#ifdef Z_HAVE_UNISTD_H 367#if defined(Z_HAVE_UNISTD_H) || _LARGEFILE64_SOURCE == 1
368# include <sys/types.h> /* for off_t */ 368# include <sys/types.h> /* for off_t */
369# include <unistd.h> /* for SEEK_* and off_t */ 369# include <unistd.h> /* for SEEK_* and off_t */
370# ifdef VMS 370# ifdef VMS
@@ -375,15 +375,12 @@ typedef uLong FAR uLongf;
375# endif 375# endif
376#endif 376#endif
377 377
378#ifdef _LARGEFILE64_SOURCE
379# include <sys/types.h>
380#endif
381
382#ifndef SEEK_SET 378#ifndef SEEK_SET
383# define SEEK_SET 0 /* Seek from beginning of file. */ 379# define SEEK_SET 0 /* Seek from beginning of file. */
384# define SEEK_CUR 1 /* Seek from current position. */ 380# define SEEK_CUR 1 /* Seek from current position. */
385# define SEEK_END 2 /* Set file pointer to EOF plus "offset" */ 381# define SEEK_END 2 /* Set file pointer to EOF plus "offset" */
386#endif 382#endif
383
387#ifndef z_off_t 384#ifndef z_off_t
388# define z_off_t long 385# define z_off_t long
389#endif 386#endif