Add missing EPOLLWAKEUP define to compat.h for older distros
PATCH 1/1 Add missing EPOLLWAKEUP define to compat.h for older distros
CC syscalls/epoll_ctl.osyscalls/epoll_ctl.c:14:2: error: ‘EPOLLWAKEUP’ undeclared here (not in a function)
Signed-off-by Brian Haley <[email protected]>
--- include/compat.h | 5 +++++ syscalls/epoll_ctl.c | 1 + 2 files changed, 6 insertions(+)
include/compat.h +5 -0
@@ -918,3 +918,8 @@ struct kvm_get_htab_fd {#ifndef SEEK_HOLE #define SEEK_HOLE 4#endif + +/* sys/epoll.h */ +#ifndef EPOLLWAKEUP +#define EPOLLWAKEUP (1u << 29) +#endif
syscalls/epoll_ctl.c +1 -0
@@ -7,6 +7,7 @@#include <sys/epoll.h> #include "sanitise.h" #include "utils.h" +#include "compat.h" static const unsigned long epoll_flags[] = {EPOLLIN ,EPOLLOUT ,EPOLLRDHUP ,EPOLLPRI ,
Signature · 1 line
1.7.9.5