From 17c21765b4a97c6f0b74ba8466073e5a3f97cdee Mon Sep 17 00:00:00 2001 From: Manuel Novoa III Date: Wed, 11 Feb 2004 16:56:14 +0000 Subject: Fix bug from the syscall reorganization, detected by python's test_poll.py. The #ifdef __NR_poll test was failing because it was done before any includes. Hence, the emulation was always being used. NOTE: The emulation fails a couple of tests in test_poll.py! --- libc/sysdeps/linux/common/poll.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libc/sysdeps/linux/common/poll.c b/libc/sysdeps/linux/common/poll.c index 9896ef858..3c26a4933 100644 --- a/libc/sysdeps/linux/common/poll.c +++ b/libc/sysdeps/linux/common/poll.c @@ -17,16 +17,16 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -#ifdef __NR_poll - #include "syscalls.h" #include + +#ifdef __NR_poll + _syscall3(int, poll, struct pollfd *, fds, unsigned long int, nfds, int, timeout); #else #include -#include #include #include #include -- cgit v1.2.3