diff options
-rw-r--r-- | lib/libdvd/libdvdread/src/dvd_reader.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libdvd/libdvdread/src/dvd_reader.c b/lib/libdvd/libdvdread/src/dvd_reader.c index d9544b3264..57dd2d0fe2 100644 --- a/lib/libdvd/libdvdread/src/dvd_reader.c +++ b/lib/libdvd/libdvdread/src/dvd_reader.c @@ -425,8 +425,9 @@ dvd_reader_t *DVDOpen( const char *ppath ) if( !(path_copy = strdup( path ) ) ) goto DVDOpen_error; -#ifndef WIN32 /* don't have fchdir, and getcwd( NULL, ... ) is strange */ +#if !defined(WIN32) && !defined(_XBMC) /* don't have fchdir, and getcwd( NULL, ... ) is strange */ /* Also WIN32 does not have symlinks, so we don't need this bit of code. */ + /* XBMC also doesn't need symlink resolution */ /* Resolve any symlinks and get the absolute dir name. */ { |