From bea6a62568d8e57a1a6f01d563b10f42a0e3e242 Mon Sep 17 00:00:00 2001 From: Borislav Stanimirov Date: Fri, 28 Feb 2025 14:30:46 +0200 Subject: [PATCH] fix: linux gcc build, missing libc symbols in zip.c --- thirdparty/zip.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/thirdparty/zip.c b/thirdparty/zip.c index 030c9a6dc..1f842a89e 100644 --- a/thirdparty/zip.c +++ b/thirdparty/zip.c @@ -8,10 +8,16 @@ * OTHER DEALINGS IN THE SOFTWARE. */ #define __STDC_WANT_LIB_EXT1__ 1 +#if !defined(_WIN32) +# define _LARGEFILE64_SOURCE 1 +# define _POSIX_C_SOURCE 200809L +# define _XOPEN_SOURCE +#endif #include #include #include +#include #if defined(_WIN32) || defined(__WIN32__) || defined(_MSC_VER) || \ defined(__MINGW32__)