diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2018-09-04 12:24:22 +0200 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2018-09-09 01:16:25 +0200 |
commit | 324be174d79290281ec42b41636a5303c569a133 (patch) | |
tree | 9f2cbba69a8261b4fcf44244bd6ce77ff59f759e /lib/memory.c | |
parent | build: use _POSIX_C_SOURCE (diff) | |
download | frr-324be174d79290281ec42b41636a5303c569a133.tar.xz frr-324be174d79290281ec42b41636a5303c569a133.zip |
build: check {malloc,pthread}_np.h for *BSD
FreeBSD has malloc_usable_size() in malloc_np.h
OpenBSD has pthread_set_name_np() in pthread_np.h
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/memory.c')
-rw-r--r-- | lib/memory.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/memory.c b/lib/memory.c index 695bbfe11..fee23a75a 100644 --- a/lib/memory.c +++ b/lib/memory.c @@ -20,6 +20,9 @@ #ifdef HAVE_MALLOC_H #include <malloc.h> #endif +#ifdef HAVE_MALLOC_NP_H +#include <malloc_np.h> +#endif #ifdef HAVE_MALLOC_MALLOC_H #include <malloc/malloc.h> #endif |