> 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
> [email protected]
> https://lists.mplayerhq.hu/mailman/listinfo/dvdnav-discuss
>



-- 
Erik Hovland
[email protected]
http://hovland.org/
_______________________________________________
DVDnav-discuss mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/dvdnav-discuss

Reply via email to