summaryrefslogtreecommitdiff
path: root/package/vlc/patches/patch-src_posix_error_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-09-24 22:23:58 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-09-24 22:27:25 +0200
commit3489adabed6655c084b7a4e43f3e8ab38ae56072 (patch)
tree697f74bd8f90af352bc965e6d2a0537c1ac2f11f /package/vlc/patches/patch-src_posix_error_c
parent0ba6cb19afd16f5c04297984d4120ee880b2493c (diff)
vlc: update to 2.2.4, add buildroot patchsets
Diffstat (limited to 'package/vlc/patches/patch-src_posix_error_c')
-rw-r--r--package/vlc/patches/patch-src_posix_error_c19
1 files changed, 16 insertions, 3 deletions
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;
+ }
+