From 1905965d890e9a5d096fc92dbf3b164754dcf893 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Tue, 4 Oct 2011 02:32:48 +0200 Subject: [PATCH] sys_select: Fix compilation error on mingw. * lib/sys_select.in.h: On native Windows, include . --- ChangeLog | 5 +++++ lib/sys_select.in.h | 14 +++++++++----- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 668add3b6..3df083868 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2011-10-03 Bruno Haible + sys_select: Fix compilation error on mingw. + * lib/sys_select.in.h: On native Windows, include . + +2011-10-03 Bruno Haible + wmemset: Support for MSVC. * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test whether wmemset() exists. diff --git a/lib/sys_select.in.h b/lib/sys_select.in.h index 7d43c2782..397508aac 100644 --- a/lib/sys_select.in.h +++ b/lib/sys_select.in.h @@ -95,11 +95,15 @@ # include # endif /* On native Windows platforms: - Get the 'fd_set' type. */ -# if @HAVE_WINSOCK2_H@ && !defined _GL_INCLUDING_WINSOCK2_H -# define _GL_INCLUDING_WINSOCK2_H -# include -# undef _GL_INCLUDING_WINSOCK2_H + Get the 'fd_set' type. + Get the close() declaration before we override it. */ +# if @HAVE_WINSOCK2_H@ +# if !defined _GL_INCLUDING_WINSOCK2_H +# define _GL_INCLUDING_WINSOCK2_H +# include +# undef _GL_INCLUDING_WINSOCK2_H +# endif +# include # endif #endif -- 2.11.0