diff options
-rw-r--r-- | src/util/common_allocation.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/common_allocation.c b/src/util/common_allocation.c index 5ff92edc3..b5473671b 100644 --- a/src/util/common_allocation.c +++ b/src/util/common_allocation.c | |||
@@ -197,6 +197,9 @@ GNUNET_xrealloc_ (void *ptr, size_t n, const char *filename, int linenumber) | |||
197 | #if WINDOWS | 197 | #if WINDOWS |
198 | #define M_SIZE(p) _msize (p) | 198 | #define M_SIZE(p) _msize (p) |
199 | #endif | 199 | #endif |
200 | #ifdef FREEBSD | ||
201 | #include <malloc_np.h> | ||
202 | #endif | ||
200 | #if HAVE_MALLOC_USABLE_SIZE | 203 | #if HAVE_MALLOC_USABLE_SIZE |
201 | #define M_SIZE(p) malloc_usable_size (p) | 204 | #define M_SIZE(p) malloc_usable_size (p) |
202 | #elif HAVE_MALLOC_SIZE | 205 | #elif HAVE_MALLOC_SIZE |