summaryrefslogtreecommitdiffstats
path: root/osdep
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-10-31 19:44:42 +0100
committerwm4 <wm4@nowhere>2014-10-31 19:44:42 +0100
commit0afc99b33ff8bf624964090bae71d4f0a5830dc9 (patch)
tree6955245e4f1478cfdac9c8dba627d16a781c9608 /osdep
parent8607b0c44b60ffe59ab571e896bee498f5098d9b (diff)
downloadmpv-0afc99b33ff8bf624964090bae71d4f0a5830dc9.tar.bz2
mpv-0afc99b33ff8bf624964090bae71d4f0a5830dc9.tar.xz
osdep: potentially fix compilation on OpenBSD
The <pthread_np.h> header expects that <pthread.h> was already included. We were including <pthread.h> only later via our threads.h.
Diffstat (limited to 'osdep')
-rw-r--r--osdep/threads.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/osdep/threads.c b/osdep/threads.c
index 6ef08dbf49..4f5b39d504 100644
--- a/osdep/threads.c
+++ b/osdep/threads.c
@@ -16,6 +16,7 @@
*/
#include <stdio.h>
#include <errno.h>
+#include <pthread.h>
#include "config.h"