]> sjero.net Git - wget/blobdiff - src/host.c
#include <sys/types.h>
[wget] / src / host.c
index fdb35b1cad2bc92c5fa935eb2f7f5fbdfcbea493..7b8c418963bd6f329ea1409698b73efd8dd51f99 100644 (file)
@@ -36,6 +36,7 @@ as that of the covered work.  */
 #include <assert.h>
 
 #ifndef WINDOWS
+# include <sys/types.h>
 # include <sys/socket.h>
 # include <netinet/in.h>
 # ifndef __BEOS__
@@ -58,6 +59,11 @@ as that of the covered work.  */
 # define NO_ADDRESS NO_DATA
 #endif
 
+#if !HAVE_DECL_H_ERRNO
+extern int h_errno;
+#endif
+
+
 /* Lists of IP addresses that result from running DNS queries.  See
    lookup_host for details.  */