Mercurial > gnulib
diff lib/sys_select.in.h @ 10474:5fc74f43b3d6
implement full-blown select(2) for winsock
2008-09-24 Paolo Bonzini <bonzini@gnu.org>
* NEWS: Document increased portability that sys_select now provides.
* lib/sys_select.in.h: Install select wrapper.
* lib/sys_socket.in.h: Use more descriptive name when there is no
select wrapper.
* lib/winsock-select.c: New.
* m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
Require gl_HEADER_SYS_SOCKET.
* modules/sys_select: Depend on alloca, add lib/winsock-select.c.
* modules/sys_select-tests: Copy dependencies from modules/poll-tests.
* tests/test-sys_select.c: Add functional tests.
author | Paolo Bonzini <bonzini@gnu.org> |
---|---|
date | Tue, 23 Sep 2008 15:11:23 +0200 |
parents | f96e845fc36d |
children | affb655993ea |
line wrap: on
line diff
--- a/lib/sys_select.in.h Wed Sep 24 10:55:19 2008 -0600 +++ b/lib/sys_select.in.h Tue Sep 23 15:11:23 2008 +0200 @@ -39,6 +39,13 @@ # include <sys/socket.h> +# if @HAVE_WINSOCK2_H@ +# undef select +# define select rpl_select + +extern int rpl_select (int, fd_set *, fd_set *, fd_set *, struct timeval *); +# endif + #endif #endif /* _GL_SYS_SELECT_H */