From c52df4de381bc79b0ec6803faacb42a6211f77c3 Mon Sep 17 00:00:00 2001 From: bellard Date: Sat, 2 Oct 2004 14:03:39 +0000 Subject: [PATCH] dietlibc support --- bcheck.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bcheck.c b/bcheck.c index 11b1f391..0db7d9d6 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); -- 2.11.4.GIT