@@ -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).
* 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).
--
#ifndef HSYSCALLS_H_INCLUDED
#define HSYSCALLS_H_INCLUDED
+#include <sys/types.h>
#include <sys/time.h>
#include <sys/socket.h>
#include <sys/uio.h>
#ifndef HSYSCALLS_H_INCLUDED
#define HSYSCALLS_H_INCLUDED
+#include <sys/types.h>
#include <sys/time.h>
#include <sys/socket.h>
#include <sys/uio.h>
#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>
#include <unistd.h>
#include <fcntl.h>
+#include <sys/types.h>
#include <netdb.h>
#include <sys/socket.h>
#include <netinet/in.h>