aboutsummaryrefslogtreecommitdiff
path: root/bcheck.c
diff options
context:
space:
mode:
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);