changeset 15535:5b5ca5c4f381

Update for latest Cygwin-related changes.
author diego
date Sat, 21 May 2005 11:41:30 +0000
parents 77c0e983c155
children b39eee207c42
files libmpdvdkit2/libdvdread_changes.diff
diffstat 1 files changed, 21 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdvdkit2/libdvdread_changes.diff	Sat May 21 11:05:45 2005 +0000
+++ b/libmpdvdkit2/libdvdread_changes.diff	Sat May 21 11:41:30 2005 +0000
@@ -343,7 +343,8 @@
 +#include </usr/conf/h/mnttab.h>
  #elif defined(SYS_BSD)
  #include <fstab.h>
- #elif defined(__linux__)
+-#elif defined(__linux__)
++#elif defined(__linux__) || defined(__CYGWIN__)
  #include <mntent.h>
  #endif
  
@@ -426,6 +427,15 @@
  
      /* Try to open libdvdcss or fall back to standard functions */
      have_css = DVDInputSetup();
+@@ -274,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
+ 
 @@ -289,7 +331,9 @@
  	    if( cdir >= 0 ) {
  		chdir( path_copy );
@@ -436,11 +446,20 @@
  		close( cdir );
  		if( new_path ) {
  		    free( path_copy );
+@@ -345,7 +393,7 @@
+ 	    }
+ 	    fclose( mntfile );
+ 	}
+-#elif defined(__linux__)
++#elif defined(__linux__) || defined(__CYGWIN__)
+         mntfile = fopen( MOUNTED, "r" );
+         if( mntfile ) {
+             struct mntent *me;
 @@ -364,6 +408,9 @@
              }
              fclose( mntfile );
  	}
-+#elif defined(WIN32)	
++#elif defined(__MINGW32__)	
 +	dev_name = strdup(path);
 +	auth_drive = DVDOpenImageFile( path, have_css );
  #endif