trinity.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Add POLLFREE symbol for older distros.
@ 2015-07-07 21:46 Vinson Lee
  0 siblings, 0 replies; only message in thread
From: Vinson Lee @ 2015-07-07 21:46 UTC (permalink / raw)
  To: trinity; +Cc: Vinson Lee

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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-07-07 21:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-07 21:46 [PATCH] Add POLLFREE symbol for older distros Vinson Lee

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).