diff options
| author | bellard <bellard> | 2004-10-02 14:03:39 +0000 |
|---|---|---|
| committer | bellard <bellard> | 2004-10-02 14:03:39 +0000 |
| commit | c52df4de381bc79b0ec6803faacb42a6211f77c3 (patch) | |
| tree | 91b7dfd57ee450abd4c636e8f35640a35a9d7cf5 | |
| parent | 8da6027e733ccde8982035ddca27c26949e8b49f (diff) | |
| download | tinycc-c52df4de381bc79b0ec6803faacb42a6211f77c3.tar.gz tinycc-c52df4de381bc79b0ec6803faacb42a6211f77c3.tar.bz2 | |
dietlibc support
| -rw-r--r-- | bcheck.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |
