fix(unzip): avoid musl time prototype conflicts by skipping legacy gmtime/localtime declarations on linux

This commit is contained in:
vxtls 2026-02-27 17:22:22 -05:00
parent 8f60091ed2
commit 8300147e0f

View file

@ -0,0 +1,12 @@
--- unzip60/unix/unxcfg.h 2009-01-18 18:09:08
+++ unzip60/unix/unxcfg.h 2026-02-27 20:56:00
@@ -117,7 +117,9 @@
# endif
#else
# include <time.h>
+# if !defined(__linux__)
struct tm *gmtime(), *localtime();
+# endif
#endif
#if (defined(BSD4_4) || (defined(SYSV) && defined(MODERN)))