Problem reported by Gisle Vanem in:
http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00139.html
* lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
* modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
Add sys_socket.
+2015-02-24 Paul Eggert <eggert@cs.ucla.edu>
+
+ poll: port to MSVC v18 on MS-Windows 8.1
+ Problem reported by Gisle Vanem in:
+ http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00139.html
+ * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
+ * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
+ Add sys_socket.
+
2015-02-24 Pádraig Brady <P@draigBrady.com>
tests: support stderr verification with returns_()
# include "msvc-nothrow.h"
#else
# include <sys/time.h>
-# include <sys/socket.h>
-# include <sys/select.h>
# include <unistd.h>
#endif
+#include <sys/select.h>
+#include <sys/socket.h>
+
#ifdef HAVE_SYS_IOCTL_H
# include <sys/ioctl.h>
#endif
select [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
sockets [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
sys_select [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
+sys_socket [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
sys_time [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
errno [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
msvc-nothrow [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]