]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Avoid compiler complaints if _TIME_BITS defined when building zlib.
authorMark Adler <madler@alumni.caltech.edu>
Mon, 21 Aug 2023 20:47:27 +0000 (13:47 -0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Thu, 24 Aug 2023 09:22:33 +0000 (11:22 +0200)
zlib does not use time_t, so _TIME_BITS is irrelevant. However it
may be defined anyway as part of a sledgehammer indiscriminately
applied to all builds.

gzguts.h

index fe0927063976432c28d2c55bea077b3938fd4118..a663844b693efa9626d4fb7318635433a6fee5db 100644 (file)
--- a/gzguts.h
+++ b/gzguts.h
@@ -9,9 +9,8 @@
 #  ifndef _LARGEFILE_SOURCE
 #    define _LARGEFILE_SOURCE 1
 #  endif
-#  ifdef _FILE_OFFSET_BITS
-#    undef _FILE_OFFSET_BITS
-#  endif
+#  undef _FILE_OFFSET_BITS
+#  undef _TIME_BITS
 #endif
 
 #if defined(HAVE_VISIBILITY_INTERNAL)