[vlc-commits] x264: don't include pthread.h if it's not available
Steve Lhomme
git at videolan.org
Thu Apr 12 14:21:22 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at 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
More information about the vlc-commits
mailing list