summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2015-02-24 16:16:19 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2015-02-24 16:18:26 -0800
commit17f1e64f00011fb745019119e21b26e4aba65e4b (patch)
tree38ebd18277ab0ed353831ce48a0ce3e01e435a18 /lib
parent0d3024546a8d5cd0294fa3c40862e64477048c2e (diff)
downloadgnulib-17f1e64f00011fb745019119e21b26e4aba65e4b.tar.gz
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/poll.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/poll.c b/lib/poll.c
index 12531d92fd..69908089ff 100644
--- a/lib/poll.c
+++ b/lib/poll.c
@@ -44,11 +44,12 @@
# 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