From 293532057ee91a6f52434d6408a836781cfc1573 Mon Sep 17 00:00:00 2001 From: Jose Maldonado aka Yukiteru Date: Wed, 14 Feb 2024 16:22:02 -0400 Subject: [PATCH] osdep/threads-posix: fix headers for OpenBSD build In OpenBSD the compilation fail because osdep/threads-posix.h need include pthread_np.h --- osdep/threads-posix.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/osdep/threads-posix.h b/osdep/threads-posix.h index 482e4a8f67..4cda0bebfc 100644 --- a/osdep/threads-posix.h +++ b/osdep/threads-posix.h @@ -23,6 +23,11 @@ #include "common/common.h" #include "config.h" +// We make use of NON-POSIX pthreads functions and certain systems +// require this header to build without issues. (ex: OpenBSD) +#if HAVE_BSD_THREAD_NAME +#include +#endif #include "osdep/compiler.h" #include "timer.h"