From: Vinson Lee <vlee@twopensource.com>
To: trinity@vger.kernel.org
Cc: Vinson Lee <vlee@twitter.com>
Subject: [PATCH] Add POLLFREE symbol for older distros.
Date: Tue, 7 Jul 2015 14:46:06 -0700 [thread overview]
Message-ID: <1436305566-7427-1-git-send-email-vlee@twopensource.com> (raw)
From: Vinson Lee <vlee@twitter.com>
Signed-off-by: Vinson Lee <vlee@twitter.com>
---
include/compat.h | 5 +++++
syscalls/poll.c | 1 +
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/include/compat.h b/include/compat.h
index 589beac..2eb8691 100644
--- a/include/compat.h
+++ b/include/compat.h
@@ -1024,3 +1024,8 @@ struct kvm_get_htab_fd {
#ifndef CLOCK_BOOTTIME
#define CLOCK_BOOTTIME 7
#endif
+
+/* asm-generic/poll.h */
+#ifndef POLLFREE
+#define POLLFREE 0x4000
+#endif
diff --git a/syscalls/poll.c b/syscalls/poll.c
index ad97482..5b863c5 100644
--- a/syscalls/poll.c
+++ b/syscalls/poll.c
@@ -7,6 +7,7 @@
#include "random.h"
#include "sanitise.h"
#include "utils.h"
+#include "compat.h"
static const unsigned long poll_events[] = {
POLLIN, POLLPRI, POLLOUT, POLLERR,
--
1.7.1
reply other threads:[~2015-07-07 21:46 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=1436305566-7427-1-git-send-email-vlee@twopensource.com \
--to=vlee@twopensource.com \
--cc=trinity@vger.kernel.org \
--cc=vlee@twitter.com \
/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 read-only IMAP folder(s) and NNTP newsgroup(s).