From: Daniel P. Berrangé Date: Thu, 5 Mar 2020 15:13:45 +0000 (+0000) Subject: src: add pthread_np.h include for FreeBSD X-Git-Tag: v6.2.0-rc1~272 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71ebda3af1f4f7be7904ade4c343bafaef14f12a;p=thirdparty%2Flibvirt.git 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é --- diff --git a/src/util/virthread.c b/src/util/virthread.c index 40792afdc0..37b2cdfbe9 100644 --- a/src/util/virthread.c +++ b/src/util/virthread.c @@ -23,6 +23,10 @@ #include "virthread.h" +#ifdef __FreeBSD__ +# include +#endif + #include #include #if HAVE_SYS_SYSCALL_H