Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
28855920
Commit
28855920
authored
Apr 06, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bring the glibc detection back, not using dlopen() hacks anymore.
parent
6becbf74
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletion
+23
-1
src/misc/linux_specific.c
src/misc/linux_specific.c
+23
-1
No files found.
src/misc/linux_specific.c
View file @
28855920
...
...
@@ -22,11 +22,13 @@
# include "config.h"
#endif
#include <stdio.h>
#include <string.h>
#include <vlc_common.h>
#include "../libvlc.h"
#if 0
#include <stdio.h>
#include <assert.h>
#include <pthread.h>
...
...
@@ -70,8 +72,28 @@ static void set_libvlc_path (void)
}
#endif
#ifdef __GLIBC__
# include <gnu/libc-version.h>
# include <stdlib.h>
#endif
void
system_Init
(
libvlc_int_t
*
libvlc
,
int
*
argc
,
const
char
*
argv
[])
{
#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
);
abort
();
}
#endif
#if 0
static pthread_once_t once = PTHREAD_ONCE_INIT;
pthread_once (&once, set_libvlc_path);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment