--- 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