patch-src_posix_error_c 566 B

1234567891011121314151617181920
  1. --- vlc-3.0.20.orig/src/posix/error.c 2017-11-24 16:29:18.000000000 +0100
  2. +++ vlc-3.0.20/src/posix/error.c 2024-03-03 07:55:57.955760063 +0100
  3. @@ -31,6 +31,7 @@
  4. static const char *vlc_strerror_l(int errnum, const char *lname)
  5. {
  6. +#ifdef HAVE_STRERROR_L
  7. int saved_errno = errno;
  8. locale_t loc = newlocale(LC_MESSAGES_MASK, lname, (locale_t)0);
  9. @@ -51,6 +52,9 @@ static const char *vlc_strerror_l(int er
  10. const char *buf = strerror_l(errnum, loc);
  11. freelocale(loc);
  12. +#else
  13. + const char *buf = strerror(errnum);
  14. +#endif
  15. return buf;
  16. }