]> sjero.net Git - wget/commitdiff
Guard inclusion of some headers.
authorSteven Schweda <sms@antinode.info>
Sat, 26 May 2012 12:39:13 +0000 (14:39 +0200)
committerGiuseppe Scrivano <gscrivano@gnu.org>
Sat, 26 May 2012 12:39:13 +0000 (14:39 +0200)
src/ChangeLog
src/connect.c

index d7a13ac0838187fee01a78d33e60b26ec6ad4e80..7e16b17c472f481814eed0c71e865d00fb859832 100644 (file)
@@ -1,3 +1,7 @@
+2011-05-26  Steven Schweda  <sms@antinode.info>
+       * connect.c [HAVE_SYS_SOCKET_H]: Include <sys/socket.h>.
+       [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
+
 2012-05-26  Mike Frysinger <vapier@gentoo.org>
 
        * warc.c: Change type of `warc_current_gzfile' to gzFile.
 2012-05-26  Mike Frysinger <vapier@gentoo.org>
 
        * warc.c: Change type of `warc_current_gzfile' to gzFile.
index 119ccb71b678b33babd1b5c995c6fd8f65f9fe07..6eca1ded24464daf542c5b41281d30c8eea51614 100644 (file)
@@ -36,8 +36,13 @@ as that of the covered work.  */
 #include <unistd.h>
 #include <assert.h>
 
 #include <unistd.h>
 #include <assert.h>
 
-#include <sys/socket.h>
-#include <sys/select.h>
+#ifdef HAVE_SYS_SOCKET_H
+# include <sys/socket.h>
+#endif /* def HAVE_SYS_SOCKET_H */
+
+#ifdef HAVE_SYS_SELECT_H
+# include <sys/select.h>
+#endif /* def HAVE_SYS_SELECT_H */
 
 #ifndef WINDOWS
 # ifdef __VMS
 
 #ifndef WINDOWS
 # ifdef __VMS