From: Brian Haley <brian.haley@hp.com>
To: trinity@vger.kernel.org
Subject: [PATCH] Add missing EPOLLWAKEUP define to compat.h for older distros
Date: Thu, 11 Sep 2014 21:35:37 -0400 [thread overview]
Message-ID: <1410485737-27811-1-git-send-email-brian.haley@hp.com> (raw)
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
reply other threads:[~2014-09-12 1:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1410485737-27811-1-git-send-email-brian.haley@hp.com \
--to=brian.haley@hp.com \
--cc=trinity@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).