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 | 0718b5624c20132450ba39454a8e245bc543281b (diff) | |
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 695bbfe115..fee23a75ac 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 |
