[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  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@xxxxxx>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe trinity" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux SCSI]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux