[DVDnav-discuss] [PATCH] replace usage of deprecated MOUNTED define
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Sat Jun 11 17:51:19 CEST 2011
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;
More information about the DVDnav-discuss
mailing list