# HG changeset patch # User diego # Date 1116675690 0 # Node ID 5b5ca5c4f381180501cb8e828d3080019f858a54 # Parent 77c0e983c155ecaf0bc56c57e3a9f6921a12a69b Update for latest Cygwin-related changes. diff -r 77c0e983c155 -r 5b5ca5c4f381 libmpdvdkit2/libdvdread_changes.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 #elif defined(SYS_BSD) #include - #elif defined(__linux__) +-#elif defined(__linux__) ++#elif defined(__linux__) || defined(__CYGWIN__) #include #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