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
a7779d59
Commit
a7779d59
authored
Jan 31, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Linux: re-implement eventfd() against old glibc versions
parent
bb677d45
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
5 deletions
+17
-5
configure.ac
configure.ac
+1
-1
src/misc/objects.c
src/misc/objects.c
+16
-4
No files found.
configure.ac
View file @
a7779d59
...
...
@@ -514,7 +514,7 @@ AC_FUNC_ALLOCA
AC_CHECK_FUNCS(fcntl)
dnl Check for Linux system calls
AC_CHECK_FUNCS([vmsplice
eventfd
])
AC_CHECK_FUNCS([vmsplice])
AH_BOTTOM([#include <vlc_fixups.h>])
...
...
src/misc/objects.c
View file @
a7779d59
...
...
@@ -53,11 +53,23 @@
# include <fcntl.h>
# include <errno.h>
/* ENOSYS */
#endif
#ifdef HAVE_SYS_EVENTFD_H
# include <sys/eventfd.h>
#endif
#include <assert.h>
#ifdef __linux__
# if defined (HAVE_SYS_EVENTFD_H)
# include <sys/eventfd.h>
# else
# include <sys/syscall.h>
static
inline
int
eventfd
(
unsigned
int
initval
,
int
flags
)
{
return
syscall
(
SYS_eventfd
,
initval
,
flags
);
}
# endif
# define HAVE_EVENTFD 1
#endif
/*****************************************************************************
* Local prototypes
*****************************************************************************/
...
...
@@ -392,7 +404,7 @@ int vlc_object_waitpipe( vlc_object_t *obj )
/* This can only ever happen if someone killed us without locking: */
assert
(
internals
->
pipes
[
1
]
==
-
1
);
#ifdef HAVE_
SYS_EVENTFD_H
#ifdef HAVE_
EVENTFD
internals
->
pipes
[
0
]
=
internals
->
pipes
[
1
]
=
eventfd
(
0
,
0
);
if
(
internals
->
pipes
[
0
]
==
-
1
)
#endif
...
...
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