summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/poll.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-03-04 12:59:10 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-03-04 12:59:10 +0100
commitc034b2e1655dd2856f8b6f3247e6e406e46c24a4 (patch)
tree7662b9ba6f3749d13c4dd9797098529e0b7c904d /libc/sysdeps/linux/common/poll.c
parent63859f89f327e48037a4cdba982cd6afa3007da7 (diff)
poll: unavailable on linux < 2.2.0
fixes bug #253 Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/sysdeps/linux/common/poll.c')
-rw-r--r--libc/sysdeps/linux/common/poll.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/poll.c b/libc/sysdeps/linux/common/poll.c
index 4a6f06e19..52f6c76b4 100644
--- a/libc/sysdeps/linux/common/poll.c
+++ b/libc/sysdeps/linux/common/poll.c
@@ -19,8 +19,9 @@
#include <sys/syscall.h>
#include <sys/poll.h>
+#include <bits/kernel-features.h>
-#ifdef __NR_poll
+#if defined __ASSUME_POLL_SYSCALL && defined __NR_poll
_syscall3(int, poll, struct pollfd *, fds,
unsigned long int, nfds, int, timeout)