diff --git a/compat/w32pthreads.h b/compat/w32pthreads.h index ac9a8142f4..3bc69b31cb 100644 --- a/compat/w32pthreads.h +++ b/compat/w32pthreads.h @@ -39,6 +39,11 @@ #include #include +/* MinGW requires the intrinsics header for the pthread_once fallback code */ +#if _WIN32_WINNT < 0x0600 && defined(__MINGW32__) +#include +#endif + #include "libavutil/attributes.h" #include "libavutil/internal.h" #include "libavutil/mem.h"