changeset 10443:8d7ca7c06ca6

MinGW support in mpdvdkit patch by Sascha Sommer
author diego
date Sat, 19 Jul 2003 21:41:53 +0000
parents d532fa79b0be
children 2e46e51269c1
files configure libmpdvdkit2/dvd_reader.c
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sat Jul 19 17:39:47 2003 +0000
+++ b/configure	Sat Jul 19 21:41:53 2003 +0000
@@ -3779,13 +3779,13 @@
 echocheck "DVD support (libmpdvdkit)"
 if test "$_dvdkit" = auto ; then
  _dvdkit=no
- if linux || freebsd || netbsd || darwin || cygwin || openbsd || sunos || hpux; then
+ if linux || freebsd || netbsd || darwin || cygwin || mingw32 || openbsd || sunos || hpux; then
   test -f "./libmpdvdkit2/Makefile" && _dvdkit=yes
   test -f "./libmpdvdkit/Makefile" && _dvdkit=yes
  fi
 fi
 if test "$_dvdkit" = yes ; then
-  if test "$_dvd" = yes || test "$_cdrom" = yes || test "$_cdio" = yes || test "$_dvdio" = yes || test "$_bsdi_dvd" = yes || test "$_hpux_scsi_h" = yes || darwin || cygwin ; then
+  if test "$_dvd" = yes || test "$_cdrom" = yes || test "$_cdio" = yes || test "$_dvdio" = yes || test "$_bsdi_dvd" = yes || test "$_hpux_scsi_h" = yes || darwin || cygwin || mingw32 ; then
    if test -f "./libmpdvdkit2/Makefile" ; then
     _inputmodules="mpdvdkit2 $_inputmodules"
     _dvdread=libmpdvdkit2
--- a/libmpdvdkit2/dvd_reader.c	Sat Jul 19 17:39:47 2003 +0000
+++ b/libmpdvdkit2/dvd_reader.c	Sat Jul 19 21:41:53 2003 +0000
@@ -310,7 +310,9 @@
 	    if( cdir >= 0 ) {
 		chdir( path_copy );
 		new_path = getcwd( NULL, PATH_MAX );
+#ifndef __MINGW32__       
 		fchdir( cdir );
+#endif       
 		close( cdir );
 		if( new_path ) {
 		    free( path_copy );