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/frr_pthread.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/frr_pthread.c')
| -rw-r--r-- | lib/frr_pthread.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/frr_pthread.c b/lib/frr_pthread.c index c0aae5e52e..7cae889ca9 100644 --- a/lib/frr_pthread.c +++ b/lib/frr_pthread.c @@ -19,6 +19,9 @@ #include <zebra.h> #include <pthread.h> +#ifdef HAVE_PTHREAD_NP_H +#include <pthread_np.h> +#endif #include <sched.h> #include "frr_pthread.h" |
