disable_pthread_on_mingw.patch 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. From: Jacek Caban <jacek@codeweavers.com>
  2. Don't use pthread for libvpx in mingw builds.
  3. diff --git a/media/libvpx/vpx_config_x86-win32-gcc.h b/media/libvpx/vpx_config_x86-win32-gcc.h
  4. index 5bc3efb..e60f84d 100644
  5. --- a/media/libvpx/vpx_config_x86-win32-gcc.h
  6. +++ b/media/libvpx/vpx_config_x86-win32-gcc.h
  7. @@ -32,7 +32,8 @@
  8. #define HAVE_AVX2 1
  9. #define HAVE_VPX_PORTS 1
  10. #define HAVE_STDINT_H 1
  11. -#define HAVE_PTHREAD_H 1
  12. +#undef HAVE_PTHREAD_H
  13. +#define HAVE_PTHREAD_H 0
  14. #define HAVE_SYS_MMAN_H 1
  15. #define HAVE_UNISTD_H 1
  16. #define CONFIG_DEPENDENCY_TRACKING 1
  17. diff --git a/media/libvpx/vpx_config_x86_64-win64-gcc.h b/media/libvpx/vpx_config_x86_64-win64-gcc.h
  18. index 4ff4339..b056a0e 100644
  19. --- a/media/libvpx/vpx_config_x86_64-win64-gcc.h
  20. +++ b/media/libvpx/vpx_config_x86_64-win64-gcc.h
  21. @@ -32,7 +32,8 @@
  22. #define HAVE_AVX2 1
  23. #define HAVE_VPX_PORTS 1
  24. #define HAVE_STDINT_H 1
  25. -#define HAVE_PTHREAD_H 1
  26. +#undef HAVE_PTHREAD_H
  27. +#define HAVE_PTHREAD_H 0
  28. #define HAVE_SYS_MMAN_H 1
  29. #define HAVE_UNISTD_H 1
  30. #define CONFIG_DEPENDENCY_TRACKING 1