]> git.sesse.net Git - vlc/commitdiff
uClibc compilation fix
authorIsmael Luceno <ismael.luceno@gmail.com>
Mon, 27 Feb 2012 11:18:44 +0000 (12:18 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 27 Feb 2012 11:19:22 +0000 (12:19 +0100)
src/posix/linux_specific.c

index 28dbed1bae4c8a91efbe27bb1b2556f9503eed5a..7e86a183e1685d38c31a6a4b64cfeaeeddc3118a 100644 (file)
@@ -74,14 +74,14 @@ error:
     return (path != NULL) ? path : strdup (PKGLIBDIR);
 }
 
-#ifdef __GLIBC__
+#if defined(__GLIBC__) && !defined(__UCLIBC__)
 # include <gnu/libc-version.h>
 # include <stdlib.h>
 #endif
 
 void system_Init (void)
 {
-#ifdef __GLIBC__
+#if defined(__GLIBC__) && !defined(__UCLIBC__)
     const char *glcv = gnu_get_libc_version ();
 
     /* gettext in glibc 2.5-2.7 is not thread-safe. LibVLC keeps crashing,