[DVDnav-discuss] r1228 - trunk/libdvdread/src/dvd_reader.c

reimar subversion at mplayerhq.hu
Wed Jun 15 20:09:15 CEST 2011


Author: reimar
Date: Wed Jun 15 20:09:15 2011
New Revision: 1228

Log:
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)

Modified:
   trunk/libdvdread/src/dvd_reader.c

Modified: trunk/libdvdread/src/dvd_reader.c
==============================================================================
--- trunk/libdvdread/src/dvd_reader.c	Sat Jun 11 17:42:20 2011	(r1227)
+++ trunk/libdvdread/src/dvd_reader.c	Wed Jun 15 20:09:15 2011	(r1228)
@@ -62,6 +62,7 @@ static inline int _private_gettimeofday(
 #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;
 


More information about the DVDnav-discuss mailing list