diff options
Diffstat (limited to 'external/unbound/util/alloc.c')
-rw-r--r-- | external/unbound/util/alloc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/external/unbound/util/alloc.c b/external/unbound/util/alloc.c index 66bdc7db9..05d2fa362 100644 --- a/external/unbound/util/alloc.c +++ b/external/unbound/util/alloc.c @@ -364,6 +364,9 @@ void *unbound_stat_malloc(size_t size) #ifdef calloc #undef calloc #endif +#ifndef INT_MAX +#define INT_MAX (((int)-1)>>1) +#endif /** calloc with stats */ void *unbound_stat_calloc(size_t nmemb, size_t size) { |