sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
authorBruno Haible <bruno@clisp.org>
Thu, 7 Jul 2011 01:34:18 +0000 (03:34 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 7 Jul 2011 01:34:18 +0000 (03:34 +0200)
commit844191ea0f97be425fea2a18c55a5b139da5d7e7
tree603116fcf10f19fe433eb0273bc3a0a3cc78e5de
parent77e666785ee842df490daf6a4e51c4b0645431e5
sys_select: Fix compilation error on mingw, introduced on 2011-06-30.

* lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
<winsock2.h>.
(rpl_fd_isset, FD_ISSET): New definitions, copied from
lib/sys_socket.in.h.
(close, gethostname): Hide declarations from <winsock2.h>.
(socket, connect, accept, bind, getpeername, getsockname, getsockopt,
listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
* lib/sys_socket.in.h (close, gethostname): Tweak indentation.
(select): Don't override if gnulib's <sys/select.h> was already
included.
* lib/unistd.in.h (socket, connect, accept, bind, getpeername,
getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
setsockopt, shutdown, select): Tweak indentation.
ChangeLog
lib/sys_select.in.h
lib/sys_socket.in.h
lib/unistd.in.h