Skip to contentSkip to conversation

Add POLLFREE symbol for older distros.

PATCH New Vinson Lee 1 participant 1 message Jul 7, 2015

lore
Share & tools
lore

Vinson Lee

author
#0 lore raw

PATCH 1/1 Add POLLFREE symbol for older distros.

From: Vinson Lee <[email protected]>

---
 include/compat.h |    5 +++++
 syscalls/poll.c  |    1 +
 2 files changed, 6 insertions(+), 0 deletions(-)
include/compat.h +5 -0
index 589beac..2eb8691 100644
@@ -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
syscalls/poll.c +1 -0
index ad97482..5b863c5 100644
@@ -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,
Signature · 1 line
1.7.1