chiark / gitweb /
+ * 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 48fa272fdc88e2e363344fd693b6d29310bacbad..51cc70e3c1283dd4526d9c90fb1910634605654c 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 afec8ca934704d0dbf064b322714fd77c0b4f2b5..5d87442322241805d30456149ccba0cf4e4a015c 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 5b736808c44230005aa5b94f579fe2f9c4d6b8bc..f7b2ba7d57910fc65110affb85646bc801c91952 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 7eaea20a9c0b2156ba51556d94cd95191501bea7..d1c792c4df864481c6d75711acbe4a2290113ab8 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 f034f0f57e75564393b21e3541f388e114722030..45ae0444a1e5fd7112ca0ad5e2b22848c3159dd6 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>