* lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
have <sys/select.h>.
2010-12-24 Bruno Haible <bruno@clisp.org>
+ sys_select: Remove unneeded include.
+ * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
+ have <sys/select.h>.
+
+2010-12-24 Bruno Haible <bruno@clisp.org>
+
gethostname: Provide a fallback for HOST_NAME_MAX.
* m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
nor MAXHOSTNAMELEN is found in the usual system headers, use 256
#ifndef _GL_SYS_SELECT_H
#define _GL_SYS_SELECT_H
-#if !@HAVE_SYS_SELECT_H@ || @REPLACE_SELECT@
+#if !@HAVE_SYS_SELECT_H@
/* A platform that lacks <sys/select.h>. */
+/* On native Windows platforms:
+ Get the 'fd_set' type. Also, gnulib's <sys/socket.h> redefines select
+ so as to hide the declaration from <winsock2.h>. */
# include <sys/socket.h>
#endif