[uClibc-cvs] uClibc/libc/sysdeps/linux/common poll.c,1.2,1.3

Manuel Novoa III mjn3 at uclibc.org
Wed Feb 11 16:56:16 UTC 2004


Update of /var/cvs/uClibc/libc/sysdeps/linux/common
In directory nail:/tmp/cvs-serv11237

Modified Files:
	poll.c 
Log Message:
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!


Index: poll.c
===================================================================
RCS file: /var/cvs/uClibc/libc/sysdeps/linux/common/poll.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- poll.c	21 Jan 2004 20:27:25 -0000	1.2
+++ poll.c	11 Feb 2004 16:56:14 -0000	1.3
@@ -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>




More information about the uClibc-cvs mailing list