aboutsummaryrefslogtreecommitdiff
path: root/bcheck.c
diff options
context:
space:
mode:
authorbellard <bellard>2004-10-02 14:03:39 +0000
committerbellard <bellard>2004-10-02 14:03:39 +0000
commitc52df4de381bc79b0ec6803faacb42a6211f77c3 (patch)
tree91b7dfd57ee450abd4c636e8f35640a35a9d7cf5 /bcheck.c
parent8da6027e733ccde8982035ddca27c26949e8b49f (diff)
downloadtinycc-c52df4de381bc79b0ec6803faacb42a6211f77c3.tar.gz
tinycc-c52df4de381bc79b0ec6803faacb42a6211f77c3.tar.bz2
dietlibc support
Diffstat (limited to 'bcheck.c')
-rw-r--r--bcheck.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bcheck.c b/bcheck.c
index 11b1f39..0db7d9d 100644
--- a/bcheck.c
+++ b/bcheck.c
@@ -36,7 +36,7 @@
#define HAVE_MEMALIGN
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__dietlibc__)
#warning Bound checking not fully supported on FreeBSD
#undef CONFIG_TCC_MALLOC_HOOKS
#undef HAVE_MEMALIGN
@@ -782,7 +782,7 @@ void *__bound_calloc(size_t nmemb, size_t size)
{
void *ptr;
size = size * nmemb;
- ptr = __bound_malloc(size);
+ ptr = __bound_malloc(size, NULL);
if (!ptr)
return NULL;
memset(ptr, 0, size);