diff options
| author | Mika Lindqvist <postmaster@raasu.org> | 2026-02-09 12:48:21 +0200 |
|---|---|---|
| committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2026-02-11 22:43:36 +0100 |
| commit | 773f6d9b7eab7457b2549e725d15aeecff79a80f (patch) | |
| tree | ca2d68a52d77a41113dee9f776b5d9a3a9b4df8c | |
| parent | 0aa53126240348f8dda1cfdb5ea2df1c951e8d3d (diff) | |
| download | Project-Tick-773f6d9b7eab7457b2549e725d15aeecff79a80f.tar.gz Project-Tick-773f6d9b7eab7457b2549e725d15aeecff79a80f.zip | |
[zconf] Fix LFS support on Windows
* Windows doesn't have unistd.h, so z_off_t declaration only can depend on value of Z_HAVE_UNISTD_H.
| -rw-r--r-- | zconf-ng.h.in | 2 | ||||
| -rw-r--r-- | zconf.h.in | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/zconf-ng.h.in b/zconf-ng.h.in index a1b5311b85..40dbfaed0c 100644 --- a/zconf-ng.h.in +++ b/zconf-ng.h.in @@ -132,7 +132,7 @@ typedef PTRDIFF_TYPE ptrdiff_t; # undef _LARGEFILE64_SOURCE #endif -#if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE) +#if defined(Z_HAVE_UNISTD_H) # include <unistd.h> /* for SEEK_*, off_t, and _LFS64_LARGEFILE */ # ifndef z_off_t # define z_off_t off_t diff --git a/zconf.h.in b/zconf.h.in index be8221fd86..2368d8e93e 100644 --- a/zconf.h.in +++ b/zconf.h.in @@ -160,7 +160,7 @@ typedef PTRDIFF_TYPE ptrdiff_t; # undef _LARGEFILE64_SOURCE #endif -#if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE) +#if defined(Z_HAVE_UNISTD_H) # include <unistd.h> /* for SEEK_*, off_t, and _LFS64_LARGEFILE */ # ifndef z_off_t # define z_off_t off_t |
