mirror of https://github.com/mpv-player/mpv
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:
parent
e19061605f
commit
293532057e
|
@ -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 <pthread_np.h>
|
||||
#endif
|
||||
#include "osdep/compiler.h"
|
||||
#include "timer.h"
|
||||
|
||||
|
|
Loading…
Reference in New Issue