+ * Always #include <sys/types.h> before <sys/socket.h> (for FreeBSD 4.6).
authorian <ian>
Sun, 24 Nov 2002 17:23:01 +0000 (17:23 +0000)
committerian <ian>
Sun, 24 Nov 2002 17:23:01 +0000 (17:23 +0000)
@@ -6,6 +6,7 @@
     (and there doesn't seem to be much explanation why).
+  * Always #include <sys/types.h> before <sys/socket.h> (for FreeBSD 4.6).

changelog
regress/hsyscalls.h
regress/hsyscalls.h.m4
src/adns.h
src/setup.c

index 48fa272..51cc70e 100644 (file)
--- a/changelog
+++ b/changelog
@@ -6,6 +6,7 @@ adns (1.1); urgency=medium
   * Don't use <sys/select.h> any more, it was a mistake made in pre-1.0
     (and there doesn't seem to be much explanation why).
   * Understand and sort of check OpenBSD `lookup' resolv.conf directive.
+  * Always #include <sys/types.h> before <sys/socket.h> (for FreeBSD 4.6).
 
  --
 
index afec8ca..5d87442 100644 (file)
@@ -1,5 +1,6 @@
 #ifndef HSYSCALLS_H_INCLUDED
 #define HSYSCALLS_H_INCLUDED
+#include <sys/types.h>
 #include <sys/time.h>
 #include <sys/socket.h>
 #include <sys/uio.h>
index 5b73680..f7b2ba7 100644 (file)
@@ -28,6 +28,7 @@ m4_include(hmacros.i4)
 #ifndef HSYSCALLS_H_INCLUDED
 #define HSYSCALLS_H_INCLUDED
 
+#include <sys/types.h>
 #include <sys/time.h>
 #include <sys/socket.h>
 #include <sys/uio.h>
index 7eaea20..d1c792c 100644 (file)
@@ -59,9 +59,9 @@
 
 #include <stdio.h>
 
+#include <sys/types.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
-#include <sys/types.h>
 #include <sys/time.h>
 #include <unistd.h>
 
index f034f0f..45ae044 100644 (file)
@@ -32,6 +32,7 @@
 #include <unistd.h>
 #include <fcntl.h>
 
+#include <sys/types.h>
 #include <netdb.h>
 #include <sys/socket.h>
 #include <netinet/in.h>