Skip to contentSkip to conversation

Add missing EPOLLWAKEUP define to compat.h for older distros

PATCH New Brian Haley 1 participant 1 message Sep 12, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add missing EPOLLWAKEUP define to compat.h for older distros

CC syscalls/epoll_ctl.o
syscalls/epoll_ctl.c:14:2: error: ‘EPOLLWAKEUP’ undeclared here (not in a function)

---
 include/compat.h     |    5 +++++
 syscalls/epoll_ctl.c |    1 +
 2 files changed, 6 insertions(+)
include/compat.h +5 -0
index 64af817..7c8fda0 100644
@@ -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
index 31df7ca..7274422 100644
@@ -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