Commit 28431c2d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

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

parent 069e8d41
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment