From: RĂ©mi Denis-Courmont Date: Sun, 9 Dec 2007 20:02:03 +0000 (+0000) Subject: Prevent gettext bug on glibc 2.5 too X-Git-Tag: 0.9.0-test0~4214 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=64b1b518cffec8834e719262099285038dfb13e0;p=vlc Prevent gettext bug on glibc 2.5 too --- diff --git a/src/vlc.c b/src/vlc.c index e9190c825b..11a7c632d2 100644 --- a/src/vlc.c +++ b/src/vlc.c @@ -67,10 +67,11 @@ int main( int i_argc, const char *ppsz_argv[] ) int i_ret; # ifdef __GLIBC__ - if (dlsym (RTLD_NEXT, "sync_file_range") && !dlsym (RTLD_NEXT, "qsort_r")) + if (dlsym (RTLD_NEXT, "inet6_rth_add") && !dlsym (RTLD_NEXT, "qsort_r")) { - /* Way too many Linux users have glibc 2.6 that keeps crashing + /* Way too many Linux users have glibc 2.5-2.7 that keeps crashing * inside its non-thread-safe dcgettext(). */ + /* Hopefully glibc 2.8 will eventually work, not sure though */ fprintf (stderr, "***************************************************\n" "*** glibc version with broken libintl detected. ***\n"