[vlc-commits] Remove the old glibc version check

Rémi Denis-Courmont git at videolan.org
Thu Mar 1 18:28:48 CET 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Mar  1 19:24:40 2012 +0200| [9ae29b39d12b30d0266842466f3ac8239d3cb005] | committer: Rémi Denis-Courmont

Remove the old glibc version check

This is not so relevant anymore and was only a warning anyway.
(We cannot avoid the bug in LibVLC.)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9ae29b39d12b30d0266842466f3ac8239d3cb005
---

 src/Makefile.am            |    1 +
 src/posix/linux_specific.c |   32 --------------------------------
 2 files changed, 1 insertions(+), 32 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index 492dcde..b35f38e 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -256,6 +256,7 @@ SOURCES_libvlc_linux = \
 	posix/thread.c \
 	posix/linux_cpu.c \
 	posix/linux_specific.c \
+	posix/specific.c \
 	posix/rand.c \
 	$(NULL)
 
diff --git a/src/posix/linux_specific.c b/src/posix/linux_specific.c
index 28dbed1..7cc7a78 100644
--- a/src/posix/linux_specific.c
+++ b/src/posix/linux_specific.c
@@ -73,35 +73,3 @@ char *config_GetLibDir (void)
 error:
     return (path != NULL) ? path : strdup (PKGLIBDIR);
 }
-
-#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
-}
-
-void system_Configure (libvlc_int_t *libvlc,
-                       int argc, const char *const argv[])
-{
-    (void)libvlc; (void)argc; (void)argv;
-}
-
-void system_End (void)
-{
-}



More information about the vlc-commits mailing list