From 324be174d79290281ec42b41636a5303c569a133 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Tue, 4 Sep 2018 12:24:22 +0200 Subject: 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 --- lib/memory.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/memory.c') 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 #endif +#ifdef HAVE_MALLOC_NP_H +#include +#endif #ifdef HAVE_MALLOC_MALLOC_H #include #endif -- cgit v1.2.3