[DVDnav-discuss] [PATCH] replace usage of deprecated MOUNTED define

Erik Hovland erik at hovland.org
Sat Jun 11 23:05:51 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...

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 at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/dvdnav-discuss
>



-- 
Erik Hovland
erik at hovland.org
http://hovland.org/


More information about the DVDnav-discuss mailing list