[vlc-devel] commit: Do not reinvent eventfd. Won't work if syscall.h is old. ( Rémi Denis-Courmont )

git version control git at videolan.org
Thu Feb 5 16:27:16 CET 2009


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Thu Feb  5 17:26:33 2009 +0200| [28431c2d47ee6a5a80ab81a50fb2ca219fa62f20] | committer: Rémi Denis-Courmont 

Do not reinvent eventfd. Won't work if syscall.h is old.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=28431c2d47ee6a5a80ab81a50fb2ca219fa62f20
---

 src/misc/objects.c |   12 ++----------
 1 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/src/misc/objects.c b/src/misc/objects.c
index 2fe3206..1795c3e 100644
--- a/src/misc/objects.c
+++ b/src/misc/objects.c
@@ -56,16 +56,8 @@
 
 #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
+#if defined (HAVE_SYS_EVENTFD_H)
+# include <sys/eventfd.h>
 # define HAVE_EVENTFD 1
 #endif
 




More information about the vlc-devel mailing list