osdep/threads-posix: fix headers for OpenBSD build

In OpenBSD the compilation fail because osdep/threads-posix.h
need include pthread_np.h
This commit is contained in:
Jose Maldonado aka Yukiteru 2024-02-14 16:22:02 -04:00 committed by Dudemanguy
parent e19061605f
commit 293532057e
1 changed files with 5 additions and 0 deletions

View File

@ -23,6 +23,11 @@
#include "common/common.h" #include "common/common.h"
#include "config.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 <pthread_np.h>
#endif
#include "osdep/compiler.h" #include "osdep/compiler.h"
#include "timer.h" #include "timer.h"