[MPlayer-dev-eng] [PATCH] configure: Fix FFmpeg on MinGW compilation.

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sat Jan 23 19:22:12 EET 2021


FFmpeg depends on CancelIoEx which means we need to define
_WIN32_WINNT=0x0600, which results in pollfd being define, so
needs to happen before that check.
---
 configure | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/configure b/configure
index de828db08..4ae27fb31 100755
--- a/configure
+++ b/configure
@@ -3594,6 +3594,11 @@ else
 fi
 echores "$_nanosleep"

+echocheck "windows.h"
+windows_h=no
+def_windows_h='#define HAVE_WINDOWS_H 0'
+header_check windows.h && windows_h=yes && def_windows_h='#define HAVE_WINDOWS_H 1' && extra_cflags="$extra_cflags -D_WIN32_WINNT=0x0600"
+echores "$windows_h"

 echocheck "socklib"
 # for Solaris (socket stuff is in -lsocket, gethostbyname and friends in -lnsl):
@@ -4218,12 +4223,6 @@ else
     _threads=no
 fi

-echocheck "windows.h"
-windows_h=no
-def_windows_h='#define HAVE_WINDOWS_H 0'
-header_check windows.h && windows_h=yes && def_windows_h='#define HAVE_WINDOWS_H 1'
-echores "$windows_h"
-

 echocheck "io.h"
 _io_h=no
--
2.30.0



More information about the MPlayer-dev-eng mailing list