Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
4428a700
Commit
4428a700
authored
Aug 03, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix forward compatibility with glibc > 2
parent
53c895bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/misc/pthread.c
src/misc/pthread.c
+2
-2
No files found.
src/misc/pthread.c
View file @
4428a700
...
...
@@ -145,7 +145,7 @@ void vlc_mutex_init( vlc_mutex_t *p_mutex )
pthread_mutexattr_settype
(
&
attr
,
PTHREAD_MUTEX_NORMAL
);
#else
/* Create error-checking mutex to detect problems more easily. */
# if defined (__GLIBC__) && (__GLIBC_MINOR__ < 6)
# if defined (__GLIBC__) && (__GLIBC_
_ == 2) && (__GLIBC_
MINOR__ < 6)
pthread_mutexattr_setkind_np
(
&
attr
,
PTHREAD_MUTEX_ERRORCHECK_NP
);
# else
pthread_mutexattr_settype
(
&
attr
,
PTHREAD_MUTEX_ERRORCHECK
);
...
...
@@ -164,7 +164,7 @@ void vlc_mutex_init_recursive( vlc_mutex_t *p_mutex )
pthread_mutexattr_t
attr
;
pthread_mutexattr_init
(
&
attr
);
#if defined (__GLIBC__) && (__GLIBC_MINOR__ < 6)
#if defined (__GLIBC__) && (__GLIBC_
_ == 2) && (__GLIBC_
MINOR__ < 6)
pthread_mutexattr_setkind_np
(
&
attr
,
PTHREAD_MUTEX_RECURSIVE_NP
);
#else
pthread_mutexattr_settype
(
&
attr
,
PTHREAD_MUTEX_RECURSIVE
);
...
...
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