summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common
diff options
context:
space:
mode:
authorDavid McCullough <davidm@snapgear.com>2001-01-29 15:24:57 +0000
committerDavid McCullough <davidm@snapgear.com>2001-01-29 15:24:57 +0000
commitb83c05cb3ea2c2421cbd921b3ff78e74071a5424 (patch)
treeb1a27b0c315b8e81bc3923c0e86114dda5a71220 /libc/sysdeps/linux/common
parent84d08a9a0e501241f6a1fa8505a3a61a9c214001 (diff)
uClinux 2.0 doesn't have the poll system call, just check for the
definition before using it.
Diffstat (limited to 'libc/sysdeps/linux/common')
-rw-r--r--libc/sysdeps/linux/common/syscalls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/syscalls.c b/libc/sysdeps/linux/common/syscalls.c
index 0a452e55f..4312ee535 100644
--- a/libc/sysdeps/linux/common/syscalls.c
+++ b/libc/sysdeps/linux/common/syscalls.c
@@ -1003,7 +1003,7 @@ _syscall4(__ptr_t, mremap, __ptr_t, old_address, size_t, old_size, size_t,
#endif
//#define __NR_poll 168
-#ifdef L_poll
+#if defined(L_poll) && defined(__NR_poll) /* uClinux 2.0 doesn't have poll */
#include <sys/poll.h>
_syscall3(int, poll, struct pollfd *, fds, unsigned long int, nfds, int, timeout);
#endif