From 71ebda3af1f4f7be7904ade4c343bafaef14f12a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Thu, 5 Mar 2020 15:13:45 +0000 Subject: [PATCH] src: add pthread_np.h include for FreeBSD MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On FreeBSD the non-portable pthread APIs need to be obtained via the pthread_np.h header. Signed-off-by: Daniel P. Berrangé --- src/util/virthread.c | 4 ++++ 1 file changed, 4 insertions(+) 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