[MPlayer-dev-eng] [PATCH] fix direct.h io.h

Stephen Sheldon sfsheldo at gmail.com
Mon Sep 17 01:07:30 CEST 2012


Something changed in ffmpeg.  The attached patch made mplayer compile 
for me on mingw64.
-------------- next part --------------
Index: configure
===================================================================
--- configure	(revision 35200)
+++ configure	(working copy)
@@ -3728,6 +3728,20 @@
 test "$_w32threads" = yes && def_threads='#define HAVE_THREADS 1' && def_w32threads='#define HAVE_W32THREADS 1'
 echores "$_w32threads"
 fi #if win32; then
+if win32; then
+  echocheck "HAVE_DIRECT_H"
+  if $(header_check "direct.h"); then
+    def_direct_h='#define HAVE_DIRECT_H 1'
+  else
+    def_direct_h='#define HAVE_DIRECT_H 0'
+  fi
+  echocheck "HAVE_IO_H"
+  if $(header_check "io.h"); then
+    def_io_h='#define HAVE_IO_H 1'
+  else
+    def_io_h='#define HAVE_IO_H 0'
+  fi
+fi
 
 
 if os2 ; then
@@ -8960,6 +8974,8 @@
 $def_mp3lame_lavc
 $def_x264_lavc
 $def_xvid_lavc
+$def_direct_h
+$def_io_h
 
 $(ff_config_enable "$libavdecoders_all"  "$libavdecoders" "#")
 $(ff_config_enable "$libavencoders_all"  "$libavencoders" "#")


More information about the MPlayer-dev-eng mailing list