diff options
Diffstat (limited to 'libc/sysdeps/linux/common/select.c')
-rw-r--r-- | libc/sysdeps/linux/common/select.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/libc/sysdeps/linux/common/select.c b/libc/sysdeps/linux/common/select.c index 9a50d198a..db038107a 100644 --- a/libc/sysdeps/linux/common/select.c +++ b/libc/sysdeps/linux/common/select.c @@ -10,12 +10,15 @@ #include "syscalls.h" #include <sys/select.h> -libc_hidden_proto(select) +extern __typeof(select) __libc_select; #ifdef __NR__newselect -# undef __NR_select -# define __NR_select __NR__newselect +# define __NR___libc_select __NR__newselect +#else +# define __NR___libc_select __NR_select #endif -_syscall5(int, select, int, n, fd_set *, readfds, fd_set *, writefds, +_syscall5(int, __libc_select, int, n, fd_set *, readfds, fd_set *, writefds, fd_set *, exceptfds, struct timeval *, timeout); -libc_hidden_def(select) +libc_hidden_proto(select) +weak_alias(__libc_select,select) +libc_hidden_weak(select) |