Add POLLFREE symbol for older distros.
PATCH 1/1 Add POLLFREE symbol for older distros.
From: Vinson Lee <[email protected]>
Signed-off-by Vinson Lee <[email protected]>
--- include/compat.h | 5 +++++ syscalls/poll.c | 1 + 2 files changed, 6 insertions(+), 0 deletions(-)
include/compat.h +5 -0
@@ -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
@@ -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