Commit 0f8a29ac authored by Reimar Döffinger's avatar Reimar Döffinger

Replace deprecated MOUNTED with _PATH_MOUNTED.

This has the side-effect of fixing compilation with Android compiler.
(I am not aware of any good reason to compile libdvdread for Android though)
parent 2b2dd48c
......@@ -62,6 +62,7 @@ static inline int _private_gettimeofday( struct timeval *tv, void *tz )
#include <fstab.h>
#elif defined(__linux__)
#include <mntent.h>
#include <paths.h>
#endif
#include "dvdread/dvd_udf.h"
......@@ -504,7 +505,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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment