Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
4c35dd21
Commit
4c35dd21
authored
May 08, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the kludge for old glibc
parent
3afd1ff1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
src/misc/threads.c
src/misc/threads.c
+7
-3
No files found.
src/misc/threads.c
View file @
4c35dd21
...
...
@@ -181,8 +181,8 @@ void vlc_threads_end( void )
#endif
}
#if
def __linux__
/* This is not prototyped under
Linux
, though it exists. */
#if
defined (__GLIBC__) && (__GLIBC_MINOR__ < 6)
/* This is not prototyped under
glibc
, though it exists. */
int
pthread_mutexattr_setkind_np
(
pthread_mutexattr_t
*
attr
,
int
kind
);
#endif
...
...
@@ -199,7 +199,7 @@ int vlc_mutex_init( vlc_mutex_t *p_mutex )
# ifndef NDEBUG
/* Create error-checking mutex to detect problems more easily. */
# if defined
(SYS_LINUX
)
# if defined
(__GLIBC__) && (__GLIBC_MINOR__ < 6
)
pthread_mutexattr_setkind_np
(
&
attr
,
PTHREAD_MUTEX_ERRORCHECK_NP
);
# else
pthread_mutexattr_settype
(
&
attr
,
PTHREAD_MUTEX_ERRORCHECK
);
...
...
@@ -250,7 +250,11 @@ int vlc_mutex_init_recursive( vlc_mutex_t *p_mutex )
int
i_result
;
pthread_mutexattr_init
(
&
attr
);
# if defined (__GLIBC__) && (__GLIBC_MINOR__ < 6)
pthread_mutexattr_setkind_np
(
&
attr
,
PTHREAD_MUTEX_RECURSIVE_NP
);
# else
pthread_mutexattr_settype
(
&
attr
,
PTHREAD_MUTEX_RECURSIVE
);
# endif
i_result
=
pthread_mutex_init
(
p_mutex
,
&
attr
);
pthread_mutexattr_destroy
(
&
attr
);
return
(
i_result
);
...
...
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