Changeset 7db96bf8cb3e9a57917f3297e68b6f33f573b944

Show
Ignore:
Timestamp:
05/07/08 19:58:35 (2 months ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1210183115 +0300
git-parent:

[b5b7e051fdc5b5d830fdf49c702e9c199548469d]

git-author:
Rémi Denis-Courmont <rem@videolan.org> 1210180711 +0300
Message:

Remove the glibc libintl kludge.

Afterall it's not our bug. More importantly, the vlc_cond_wait "possible
deadlock" debug message has been removed, which makes the problem a lot
less likely to happen.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/vlc.c

    r7fd923e r7db96bf  
    3636#include <stdlib.h> 
    3737#include <locale.h> 
    38 #ifdef __GLIBC__ 
    39 #include <dlfcn.h> 
    40 #endif 
    4138 
    4239 
     
    6966    int i_ret, id; 
    7067 
    71 #   ifdef __GLIBC__ 
    72     if (dlsym (RTLD_NEXT, "inet6_rth_add") && !dlsym (RTLD_NEXT, "qsort_r")) 
    73     { 
    74         /* Way too many Linux users have glibc 2.5-2.7 that keeps crashing 
    75          * inside its non-thread-safe dcgettext(). */ 
    76         /* Hopefully glibc 2.8 will eventually work, not sure though */ 
    77         fprintf (stderr, 
    78 "***************************************************\n" 
    79 "*** glibc version with broken libintl detected. ***\n" 
    80 "*** Messages localization will be disabled.     ***\n" 
    81 "***************************************************\n"); 
    82         setenv ("LC_MESSAGES", "C", 1); 
    83     } 
    84 #   endif 
    8568    setlocale (LC_ALL, ""); 
    8669