Files
kappa-packages/patches/tcc-0.9.27-glibc-2.34.patch
T
2026-08-18 01:51:35 -04:00

14 lines
403 B
Diff

--- a/lib/bcheck.c
+++ b/lib/bcheck.c
@@ -50,7 +50,9 @@
|| defined(__OpenBSD__) \
|| defined(__NetBSD__) \
|| defined(__dietlibc__) \
- || defined(_WIN32)
+ || defined(_WIN32) \
+ || (defined(__GLIBC__) && defined(__GLIBC_PREREQ) \
+ && __GLIBC_PREREQ(2, 34))
//#warning Bound checking does not support malloc (etc.) in this environment.
#undef CONFIG_TCC_MALLOC_HOOKS
#undef HAVE_MEMALIGN