11 Jun
2011
11 Jun
'11
3:51 p.m.
Hello, the MOUNTED define is deprecated and _PATH_MOUNTED from paths.h should be used instead it seems. Fairly irrelevant in practice, but it does fix compilation with the Android NDK... Index: dvd_reader.c =================================================================== --- dvd_reader.c (revision 1226) +++ dvd_reader.c (working copy) @@ -62,6 +62,7 @@ #include <fstab.h> #elif defined(__linux__) #include <mntent.h> +#include <paths.h> #endif #include "dvdread/dvd_udf.h" @@ -504,7 +505,7 @@ fclose( mntfile ); } #elif defined(__linux__) - mntfile = fopen( MOUNTED, "r" ); + mntfile = fopen( _PATH_MOUNTED, "r" ); if( mntfile ) { struct mntent *me;