diff options
author | theuni <theuni-nospam-@xbmc.org> | 2012-05-27 16:18:24 -0400 |
---|---|---|
committer | Cory Fields <theuni-nospam-@xbmc.org> | 2012-08-08 18:47:59 -0400 |
commit | 4e3d35347fc629939e513dc806b9e41bff8acacc (patch) | |
tree | 019841472005562b0cc4bda494f41dd916ac1f37 /lib | |
parent | 14588ff22dca8c5247fca589a8f3c1faa3817af3 (diff) |
[droid] fix libdvd
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libdvd/libdvdnav/src/remap.c | 2 | ||||
-rw-r--r-- | lib/libdvd/libdvdread/src/dvd_reader.c | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/lib/libdvd/libdvdnav/src/remap.c b/lib/libdvd/libdvdnav/src/remap.c index 5601605dba..eb40b9d841 100644 --- a/lib/libdvd/libdvdnav/src/remap.c +++ b/lib/libdvd/libdvdnav/src/remap.c @@ -25,10 +25,10 @@ #include <stdlib.h> #include <string.h> #include <stdio.h> +#include <fcntl.h> #ifndef _MSC_VER #include <sys/param.h> -#include <sys/fcntl.h> #else #ifndef MAXPATHLEN #define MAXPATHLEN 255 diff --git a/lib/libdvd/libdvdread/src/dvd_reader.c b/lib/libdvd/libdvdread/src/dvd_reader.c index 2173cdda1f..8849e848e3 100644 --- a/lib/libdvd/libdvdread/src/dvd_reader.c +++ b/lib/libdvd/libdvdread/src/dvd_reader.c @@ -31,6 +31,9 @@ #include <unistd.h> #include <limits.h> #include <dirent.h> +#ifndef WIN32 +#include <paths.h> +#endif #define WITH_CACHE @@ -492,7 +495,7 @@ dvd_reader_t *DVDOpen( const char *ppath ) fclose( mntfile ); } #elif defined(__linux__) - mntfile = fopen( MOUNTED, "r" ); + mntfile = fopen( _PATH_MOUNTED, "r" ); if( mntfile ) { struct mntent *me; |