[PATCH] src: add pthread_np.h include for FreeBSD

5 Mar
2020
5 Mar
'20
3:16 p.m.
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> --- Pushed as a build fix for FreeBSD 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 <pthread_np.h> +#endif + #include <unistd.h> #include <inttypes.h> #if HAVE_SYS_SYSCALL_H -- 2.24.1
2003
Age (days ago)
2003
Last active (days ago)
0 comments
1 participants
participants (1)
-
Daniel P. Berrangé