]> xenbits.xensource.com Git - libvirt.git/commitdiff
src: add pthread_np.h include for FreeBSD
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 5 Mar 2020 15:13:45 +0000 (15:13 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Thu, 5 Mar 2020 15:13:45 +0000 (15:13 +0000)
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>
src/util/virthread.c

index 40792afdc069081ae12b700d76479916d7b38427..37b2cdfbe92a07c964d10b18bfbbd21ffe529896 100644 (file)
 
 #include "virthread.h"
 
+#ifdef __FreeBSD__
+# include <pthread_np.h>
+#endif
+
 #include <unistd.h>
 #include <inttypes.h>
 #if HAVE_SYS_SYSCALL_H