diff options
author | Waldemar Brodkorb <mail@waldemar-brodkorb.de> | 2012-07-27 10:45:02 +0200 |
---|---|---|
committer | Waldemar Brodkorb <mail@waldemar-brodkorb.de> | 2012-07-27 10:45:02 +0200 |
commit | 42dd254f5937274f164a5a7c5fb3c1f80e38e7af (patch) | |
tree | 9d2f1aa0333e04af8493d6a5f533b6e243bf5d2b /package/vlc/patches/patch-src_posix_linux_specific_c | |
parent | 7f0a66667a815bb8e28b4c8b93666b92a667b485 (diff) |
full build on Darwin fixes
Diffstat (limited to 'package/vlc/patches/patch-src_posix_linux_specific_c')
-rw-r--r-- | package/vlc/patches/patch-src_posix_linux_specific_c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/package/vlc/patches/patch-src_posix_linux_specific_c b/package/vlc/patches/patch-src_posix_linux_specific_c new file mode 100644 index 000000000..a5cdc1534 --- /dev/null +++ b/package/vlc/patches/patch-src_posix_linux_specific_c @@ -0,0 +1,30 @@ +--- vlc-2.0.3.orig/src/posix/linux_specific.c 2011-12-08 19:00:28.000000000 +0100 ++++ vlc-2.0.3/src/posix/linux_specific.c 2012-07-26 16:08:31.000000000 +0200 +@@ -83,27 +83,8 @@ static struct + unsigned refs; + } once = { VLC_STATIC_MUTEX, 0 }; + +-#ifdef __GLIBC__ +-# include <gnu/libc-version.h> +-# include <stdlib.h> +-#endif +- + void system_Init (void) + { +-#ifdef __GLIBC__ +- const char *glcv = gnu_get_libc_version (); +- +- /* gettext in glibc 2.5-2.7 is not thread-safe. LibVLC keeps crashing, +- * especially in sterror_r(). Even if we have NLS disabled, the calling +- * process might have called setlocale(). */ +- if (strverscmp (glcv, "2.5") >= 0 && strverscmp (glcv, "2.8") < 0) +- { +- fputs ("LibVLC has detected an unusable buggy GNU/libc version.\n" +- "Please update to version 2.8 or newer.\n", stderr); +- fflush (stderr); +- } +-#endif +- + vlc_mutex_lock (&once.lock); + if (once.refs++ == 0) + set_libvlc_path (); |