patch-src_posix_linux_specific_c 988 B

123456789101112131415161718192021222324252627282930
  1. --- vlc-2.0.3.orig/src/posix/linux_specific.c 2011-12-08 19:00:28.000000000 +0100
  2. +++ vlc-2.0.3/src/posix/linux_specific.c 2012-07-26 16:08:31.000000000 +0200
  3. @@ -83,27 +83,8 @@ static struct
  4. unsigned refs;
  5. } once = { VLC_STATIC_MUTEX, 0 };
  6. -#ifdef __GLIBC__
  7. -# include <gnu/libc-version.h>
  8. -# include <stdlib.h>
  9. -#endif
  10. -
  11. void system_Init (void)
  12. {
  13. -#ifdef __GLIBC__
  14. - const char *glcv = gnu_get_libc_version ();
  15. -
  16. - /* gettext in glibc 2.5-2.7 is not thread-safe. LibVLC keeps crashing,
  17. - * especially in sterror_r(). Even if we have NLS disabled, the calling
  18. - * process might have called setlocale(). */
  19. - if (strverscmp (glcv, "2.5") >= 0 && strverscmp (glcv, "2.8") < 0)
  20. - {
  21. - fputs ("LibVLC has detected an unusable buggy GNU/libc version.\n"
  22. - "Please update to version 2.8 or newer.\n", stderr);
  23. - fflush (stderr);
  24. - }
  25. -#endif
  26. -
  27. vlc_mutex_lock (&once.lock);
  28. if (once.refs++ == 0)
  29. set_libvlc_path ();