aboutsummaryrefslogtreecommitdiff
path: root/src/util/common_allocation.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-12-08 17:50:15 +0000
committerChristian Grothoff <christian@grothoff.org>2013-12-08 17:50:15 +0000
commit6878c22ebb835969239cf1792133118ccfd1afdc (patch)
tree15445bb5de0ab713af9636394d5d43b2824fd3a1 /src/util/common_allocation.c
parent1687339c1c7df26b0a915531c64ae57468ec1a16 (diff)
-freebsd wants malloc_np for malloc_usable_size
Diffstat (limited to 'src/util/common_allocation.c')
-rw-r--r--src/util/common_allocation.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/common_allocation.c b/src/util/common_allocation.c
index 5ff92edc3b..b5473671bb 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 <malloc_np.h>
+#endif
#if HAVE_MALLOC_USABLE_SIZE
#define M_SIZE(p) malloc_usable_size (p)
#elif HAVE_MALLOC_SIZE