]> sjero.net Git - wget/commitdiff
#include <sys/types.h>
authorMicah Cowan <micah@cowan.name>
Fri, 12 Jun 2009 22:37:10 +0000 (15:37 -0700)
committerMicah Cowan <micah@cowan.name>
Fri, 12 Jun 2009 22:37:10 +0000 (15:37 -0700)
src/ChangeLog
src/host.c

index b76e7f9f104e2b04349dec93eb0a4e7b12a845ba..0a80c8c37b6d38c32c7babb80671b80233abdcd5 100644 (file)
@@ -1,5 +1,10 @@
 2009-06-12  Micah Cowan  <micah@cowan.name>
 
+       * host.c: Include <sys/types.h> before <sys/socket.h>. Not
+       required by POSIX any more, but some older systems (such as
+       FreeBSD 4.1) still need it, and it doesn't seem like it could
+       hurt...
+
        * build_info.c (library): Handle "https" as a feature in its own
        right, apart from "gnutls" and "openssl".
 
index e65a23aa147a5f9d6a02c2d67b7c3b656c94b0c3..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__