vlc | branch: master | Steve Lhomme <rob...@ycbcr.xyz> | Thu Apr 12 14:19:33 
2018 +0200| [966e96920f85a3ac43aae7b364290221874a4329] | committer: Steve Lhomme

x264: don't include pthread.h if it's not available

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=966e96920f85a3ac43aae7b364290221874a4329
---

 modules/codec/x264.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/x264.c b/modules/codec/x264.c
index bcf3c89a10..dd64381eb1 100644
--- a/modules/codec/x264.c
+++ b/modules/codec/x264.c
@@ -38,7 +38,7 @@
 #include <vlc_cpu.h>
 #include <math.h>
 
-#ifdef PTW32_STATIC_LIB
+#if defined(PTW32_STATIC_LIB) && defined(HAVE_PTHREAD_H)
 #include <pthread.h>
 #endif
 #ifdef MODULE_NAME_IS_x262

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to