[vlc-devel] [PATCH] Android: fix compilation
Rémi Denis-Courmont
remi at remlab.net
Thu Jan 2 23:26:02 CET 2014
Le jeudi 2 janvier 2014, 17:17:58 Edward Wang a écrit :
> diff --git a/src/posix/error.c b/src/posix/error.c
> index acb42c9..62d29be 100644
> --- a/src/posix/error.c
> +++ b/src/posix/error.c
> @@ -30,7 +30,12 @@
> static const char *vlc_strerror_l(int errnum, const char *lname)
> {
> locale_t loc = newlocale(LC_MESSAGES_MASK, lname, (locale_t)0);
> - const char *buf = strerror_l(errnum, loc);
> + const char *buf;
> +#ifndef __ANDROID__
> + buf = strerror_l(errnum, loc);
AFAIK, this is not optional in (src/)*posix*.
> +#else
> + buf = strerror(errnum);
> +#endif
Would you please care to read the comment like 5 lines down?
>
> freelocale(loc);
> return buf;
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the vlc-devel
mailing list