diff options
author | wm4 <wm4@nowhere> | 2012-12-09 15:49:39 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-12-11 00:37:54 +0100 |
commit | 58f3b7548588c224099fa059868116be003678bd (patch) | |
tree | d2555b568d51749735d21551d1c1494e0cd81007 /core | |
parent | ae9c03c1a954ddad7114de0deff42ac046baf0f2 (diff) | |
download | mpv-58f3b7548588c224099fa059868116be003678bd.tar.bz2 mpv-58f3b7548588c224099fa059868116be003678bd.tar.xz |
windows support: fix compilation with pthreads
This caused errors like:
core/mplayer.c:4308:5: error: implicit declaration of function 'pthread_win32_thread_detach_np' [-Werror=implicit-function-declaration]
It turns out a pthread.h include was missing. It's not clear why this
used to work (or rather, why it happens only sometimes). Possibly some
libraries or system headers recursively include pthread.h under certain
circumstances or configurations.
Fix missing quoting in configure, which led to broken terminal output.
Closes #6.
Diffstat (limited to 'core')
-rw-r--r-- | core/mplayer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/mplayer.c b/core/mplayer.c index 0a6b4f5130..99fd4b46ed 100644 --- a/core/mplayer.c +++ b/core/mplayer.c @@ -22,6 +22,10 @@ #include <math.h> #include <assert.h> +#ifdef PTW32_STATIC_LIB +#include <pthread.h> +#endif + #include <libavutil/intreadwrite.h> #include <libavutil/attributes.h> |