projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
- Allocate buffer large enough to contain UNIX_PATH_MAX size pathnames in case of...
[oweals/gnunet.git]
/
src
/
util
/
common_allocation.c
diff --git
a/src/util/common_allocation.c
b/src/util/common_allocation.c
index 5ff92edc3b0687ee67a12a484f99d3f3e50f5349..b5473671bb41c64e8de432aa1d43e1fa9609a948 100644
(file)
--- 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