[PATCH] replace usage of deprecated MOUNTED define
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;
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...
Hey look, different C library! I do not have an issue w/ this patch since this is the recommended portable way from glibc. E
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;
_______________________________________________ DVDnav-discuss mailing list DVDnav-discuss@mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/dvdnav-discuss
-- Erik Hovland erik@hovland.org http://hovland.org/
On Sat, Jun 11, 2011 at 02:05:51PM -0700, Erik Hovland wrote:
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...
Hey look, different C library! I do not have an issue w/ this patch since this is the recommended portable way from glibc.
Thanks, applied. Saves me from adding special code to allow MPlayer to compile for Android out-of-the-box.
participants (2)
-
Erik Hovland -
Reimar Döffinger