diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2015-02-24 16:16:19 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2015-02-24 16:18:26 -0800 |
commit | 17f1e64f00011fb745019119e21b26e4aba65e4b (patch) | |
tree | 38ebd18277ab0ed353831ce48a0ce3e01e435a18 /lib | |
parent | 0d3024546a8d5cd0294fa3c40862e64477048c2e (diff) | |
download | gnulib-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.c | 5 |
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 |