Gentoo Archives: gentoo-commits

From: "Tom Wijsman (tomwij)" <tomwij@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-video/vlc/files: vlc-2.0.8-support-uclibc.patch
Date: Sat, 26 Oct 2013 07:39:10
Message-Id: 20131026073903.22FCC2004E@flycatcher.gentoo.org
1 tomwij 13/10/26 07:39:03
2
3 Added: vlc-2.0.8-support-uclibc.patch
4 Log:
5 Support uclibc on the 2.0 branch; not applied to older branches as they no longer have the code present, therefore they might already support it. Reported and patch contributed by Amadeusz Sławiński, fixes bug #479542.
6
7 (Portage version: HEAD/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D)
8
9 Revision Changes Path
10 1.1 media-video/vlc/files/vlc-2.0.8-support-uclibc.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/vlc/files/vlc-2.0.8-support-uclibc.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/vlc/files/vlc-2.0.8-support-uclibc.patch?rev=1.1&content-type=text/plain
14
15 Index: vlc-2.0.8-support-uclibc.patch
16 ===================================================================
17 diff -uNr a/src/posix/linux_specific.c b/src/posix/linux_specific.c
18 --- a/src/posix/linux_specific.c 2011-12-08 20:00:28.000000000 +0200
19 +++ b/src/posix/linux_specific.c 2013-08-02 19:47:52.823858758 +0200
20 @@ -83,14 +83,14 @@
21 unsigned refs;
22 } once = { VLC_STATIC_MUTEX, 0 };
23
24 -#ifdef __GLIBC__
25 +#if defined(__GLIBC__) && !defined(__UCLIBC__)
26 # include <gnu/libc-version.h>
27 # include <stdlib.h>
28 #endif
29
30 void system_Init (void)
31 {
32 -#ifdef __GLIBC__
33 +#if defined(__GLIBC__) && !defined(__UCLIBC__)
34 const char *glcv = gnu_get_libc_version ();
35
36 /* gettext in glibc 2.5-2.7 is not thread-safe. LibVLC keeps crashing,