diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-07-19 21:41:53 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-07-19 21:41:53 +0000 |
commit | bc7792fd7c6ef45c3ede3f31a594e09c6b70a2a1 (patch) | |
tree | 44c1cb895c3da9c857499d9e3476a46a9d90a16d /libmpdvdkit2 | |
parent | 150b1bc680ec2430baec1e57e7b41b6eeaa05994 (diff) |
MinGW support in mpdvdkit
patch by Sascha Sommer
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10444 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdvdkit2')
-rw-r--r-- | libmpdvdkit2/dvd_reader.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libmpdvdkit2/dvd_reader.c b/libmpdvdkit2/dvd_reader.c index 484762b58f..60469b2255 100644 --- a/libmpdvdkit2/dvd_reader.c +++ b/libmpdvdkit2/dvd_reader.c @@ -310,7 +310,9 @@ dvd_reader_t *DVDOpen( const char *path ) 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 ); |