changeset 15534:77c0e983c155

Support playing DVDs from harddrive directories. idea from Bj«Órn Hermansson < Bjorn dot Hermansson at teliasonera dot com >
author diego
date Sat, 21 May 2005 11:05:45 +0000
parents ddf15d233d58
children 5b5ca5c4f381
files libmpdvdkit2/dvd_reader.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdvdkit2/dvd_reader.c	Sat May 21 06:50:08 2005 +0000
+++ b/libmpdvdkit2/dvd_reader.c	Sat May 21 11:05:45 2005 +0000
@@ -45,7 +45,7 @@
 #include </usr/conf/h/mnttab.h>
 #elif defined(SYS_BSD)
 #include <fstab.h>
-#elif defined(__linux__)
+#elif defined(__linux__) || defined(__CYGWIN__)
 #include <mntent.h>
 #endif
 
@@ -320,7 +320,7 @@
 	char *path_copy;
 #if defined(SYS_BSD)
 	struct fstab* fe;
-#elif defined(__sun) || defined(__linux__)
+#elif defined(__sun) || defined(__linux__) || defined(__CYGWIN__)
 	FILE *mntfile;
 #endif
 
@@ -393,7 +393,7 @@
 	    }
 	    fclose( mntfile );
 	}
-#elif defined(__linux__)
+#elif defined(__linux__) || defined(__CYGWIN__)
         mntfile = fopen( MOUNTED, "r" );
         if( mntfile ) {
             struct mntent *me;
@@ -412,7 +412,7 @@
             }
             fclose( mntfile );
 	}
-#elif defined(WIN32)	
+#elif defined(__MINGW32__)	
 	dev_name = strdup(path);
 	auth_drive = DVDOpenImageFile( path, have_css );
 #endif