diff options
author | Manuel Novoa III <mjn3@codepoet.org> | 2004-02-11 16:56:14 +0000 |
---|---|---|
committer | Manuel Novoa III <mjn3@codepoet.org> | 2004-02-11 16:56:14 +0000 |
commit | 17c21765b4a97c6f0b74ba8466073e5a3f97cdee (patch) | |
tree | 6b5e450607bed3f72f583c6009bb479dfcd7c6ea /libc | |
parent | be6ad2b28b471ab0c5374fb7434ef2e58e307f06 (diff) |
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!
Diffstat (limited to 'libc')
-rw-r--r-- | libc/sysdeps/linux/common/poll.c | 6 |
1 files 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 <sys/poll.h> + +#ifdef __NR_poll + _syscall3(int, poll, struct pollfd *, fds, unsigned long int, nfds, int, timeout); #else #include <alloca.h> -#include <sys/poll.h> #include <sys/types.h> #include <errno.h> #include <string.h> |