]> sjero.net Git - wget/blobdiff - src/connect.c
Guard inclusion of some headers.
[wget] / src / connect.c
index 119ccb71b678b33babd1b5c995c6fd8f65f9fe07..6eca1ded24464daf542c5b41281d30c8eea51614 100644 (file)
@@ -36,8 +36,13 @@ as that of the covered work.  */
 #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