]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Fixed missing large file defines in zconf.in that exist in zconf-ng.in. Accidentally...
authorNathan Moinvaziri <nathan@nathanm.com>
Mon, 25 Jan 2021 06:23:21 +0000 (22:23 -0800)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Thu, 28 Jan 2021 12:35:56 +0000 (13:35 +0100)
https://github.com/zlib-ng/zlib-ng/commit/6dcc7bf815c803fe7712e449b3c8fee8f3ab6dda#diff-ce3e5ac484a4ca73e6533421950dbe15

zconf.h.in

index d2c02fbb9b3754eced584f19380684f9105a3913..fcbcbb6b15a4f935258995e564009c16f3be2f69 100644 (file)
@@ -148,6 +148,18 @@ typedef PTRDIFF_TYPE ptrdiff_t;
 #  endif
 #endif
 
+#if defined(_LFS64_LARGEFILE) && _LFS64_LARGEFILE-0
+#  define Z_LFS64
+#endif
+
+#if defined(_LARGEFILE64_SOURCE) && defined(Z_LFS64)
+#  define Z_LARGE64
+#endif
+
+#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS-0 == 64 && defined(Z_LFS64)
+#  define Z_WANT64
+#endif
+
 #if !defined(SEEK_SET)
 #  define SEEK_SET        0       /* Seek from beginning of file.  */
 #  define SEEK_CUR        1       /* Seek from current position.  */