tcc-0.9.26-disablebcheck.diff at [7dafc6aec5]

File build/tcc-patches/0.9.26/tcc-0.9.26-disablebcheck.diff artifact 3c86d855ec part of check-in 7dafc6aec5


diff -uNr tcc-0.9.26.orig/lib/bcheck.c tcc-0.9.26-1disablebcheck/lib/bcheck.c
--- tcc-0.9.26.orig/lib/bcheck.c	2013-02-15 08:24:00.000000000 -0600
+++ tcc-0.9.26-1disablebcheck/lib/bcheck.c	2014-05-16 22:58:34.829016999 -0500
@@ -42,6 +42,7 @@
 #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) \
     || defined(__DragonFly__) || defined(__dietlibc__) \
     || defined(__UCLIBC__) || defined(__OpenBSD__) \
+    || (defined(__sun) && defined(__SVR4)) \
     || defined(_WIN32) || defined(TCC_UCLIBC)
 #warning Bound checking does not support malloc (etc.) in this environment.
 #undef CONFIG_TCC_MALLOC_HOOKS