* [PATCH] Add missing EPOLLWAKEUP define to compat.h for older distros
@ 2014-09-12 1:35 Brian Haley
0 siblings, 0 replies; only message in thread
From: Brian Haley @ 2014-09-12 1:35 UTC (permalink / raw)
To: trinity
CC syscalls/epoll_ctl.o
syscalls/epoll_ctl.c:14:2: error: ‘EPOLLWAKEUP’ undeclared here (not in a function)
Signed-off-by: Brian Haley <brian.haley@hp.com>
---
include/compat.h | 5 +++++
syscalls/epoll_ctl.c | 1 +
2 files changed, 6 insertions(+)
diff --git a/include/compat.h b/include/compat.h
index 64af817..7c8fda0 100644
--- a/include/compat.h
+++ b/include/compat.h
@@ -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
diff --git a/syscalls/epoll_ctl.c b/syscalls/epoll_ctl.c
index 31df7ca..7274422 100644
--- a/syscalls/epoll_ctl.c
+++ b/syscalls/epoll_ctl.c
@@ -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,
--
1.7.9.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-09-12 1:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-12 1:35 [PATCH] Add missing EPOLLWAKEUP define to compat.h for older distros Brian Haley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).