src: add pthread_np.h include for FreeBSD

On FreeBSD the non-portable pthread APIs need to be obtained
via the pthread_np.h header.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrangé 2020-03-05 15:13:45 +00:00
parent 5bff668dfb
commit 71ebda3af1

View File

@ -23,6 +23,10 @@
#include "virthread.h"
#ifdef __FreeBSD__
# include <pthread_np.h>
#endif
#include <unistd.h>
#include <inttypes.h>
#if HAVE_SYS_SYSCALL_H