From 6878c22ebb835969239cf1792133118ccfd1afdc Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 8 Dec 2013 17:50:15 +0000 Subject: -freebsd wants malloc_np for malloc_usable_size --- src/util/common_allocation.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/util/common_allocation.c') 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) #if WINDOWS #define M_SIZE(p) _msize (p) #endif +#ifdef FREEBSD +#include +#endif #if HAVE_MALLOC_USABLE_SIZE #define M_SIZE(p) malloc_usable_size (p) #elif HAVE_MALLOC_SIZE -- cgit v1.2.3