[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
sys_select: tweak
From: |
Bruno Haible |
Subject: |
sys_select: tweak |
Date: |
Fri, 24 Dec 2010 16:22:22 +0100 |
User-agent: |
KMail/1.9.9 |
There is no reason to include <sys/socket.h> from <sys/select.h>
except on native Windows platforms. I've tested this on various platforms.
2010-12-24 Bruno Haible <address@hidden>
sys_select: Remove unneeded include.
* lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
have <sys/select.h>.
--- lib/sys_select.in.h.orig Fri Dec 24 16:21:19 2010
+++ lib/sys_select.in.h Fri Dec 24 16:19:49 2010
@@ -65,8 +65,11 @@
#ifndef _GL_SYS_SELECT_H
#define _GL_SYS_SELECT_H
-#if address@hidden@ || @REPLACE_SELECT@
+#if address@hidden@
/* 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- sys_select: tweak,
Bruno Haible <=