sys_select: Remove unneeded include.
authorBruno Haible <bruno@clisp.org>
Fri, 24 Dec 2010 15:21:59 +0000 (16:21 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 24 Dec 2010 15:21:59 +0000 (16:21 +0100)
* lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
have <sys/select.h>.

ChangeLog
lib/sys_select.in.h

index 9e4c4e4..edab313 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 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
index 4414dfe..baaf510 100644 (file)
 #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