From 3489adabed6655c084b7a4e43f3e8ab38ae56072 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 24 Sep 2016 22:23:58 +0200 Subject: vlc: update to 2.2.4, add buildroot patchsets --- package/vlc/patches/patch-src_posix_error_c | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'package/vlc/patches/patch-src_posix_error_c') diff --git a/package/vlc/patches/patch-src_posix_error_c b/package/vlc/patches/patch-src_posix_error_c index 3e720ec00..ef51c996e 100644 --- a/package/vlc/patches/patch-src_posix_error_c +++ b/package/vlc/patches/patch-src_posix_error_c @@ -1,6 +1,14 @@ ---- vlc-2.2.1.orig/src/posix/error.c 2014-08-14 02:20:04.000000000 -0500 -+++ vlc-2.2.1/src/posix/error.c 2015-04-25 21:13:22.287684003 -0500 -@@ -48,7 +48,11 @@ static const char *vlc_strerror_l(int er +--- vlc-2.2.4.orig/src/posix/error.c 2015-02-02 20:42:32.000000000 +0100 ++++ vlc-2.2.4/src/posix/error.c 2016-09-24 20:34:45.824539253 +0200 +@@ -31,6 +31,7 @@ + + static const char *vlc_strerror_l(int errnum, const char *lname) + { ++#ifdef HAVE_STRERROR_L + int saved_errno = errno; + locale_t loc = newlocale(LC_MESSAGES_MASK, lname, (locale_t)0); + +@@ -48,9 +49,16 @@ static const char *vlc_strerror_l(int er errno = saved_errno; } @@ -11,4 +19,9 @@ +#endif freelocale(loc); ++#else ++ const char *buf = strerror(errnum); ++#endif return buf; + } + -- cgit v1.2.3