changeset 66:d16d554fa215 src

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)
author reimar
date Wed, 15 Jun 2011 18:09:15 +0000
parents fb0ccb03eb7d
children 8fab3ce417ed
files dvd_reader.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dvd_reader.c	Sun Jan 30 23:44:16 2011 +0000
+++ b/dvd_reader.c	Wed Jun 15 18:09:15 2011 +0000
@@ -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;