summaryrefslogtreecommitdiffhomepage
path: root/includes.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2005-10-31 07:49:57 +0000
committerMatt Johnston <matt@ucc.asn.au>2005-10-31 07:49:57 +0000
commitf1d36b19702b6af35df2801d0c51eb113ee81495 (patch)
tree511ca46cbb8c06df0ac4b231f18bb405aab29611 /includes.h
parentb131f74533ea87d635b62874c35240b8390825e9 (diff)
* include netinet/in_systm.h if available before netinet/ip.h, since
netbsd seems to require it for some reason. hooray for many unices. --HG-- extra : convert_revision : 762eefb16551bf355cbaffb85453a34221c7a2ff
Diffstat (limited to 'includes.h')
-rw-r--r--includes.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/includes.h b/includes.h
index ceea160..02e8877 100644
--- a/includes.h
+++ b/includes.h
@@ -44,8 +44,6 @@
#include <fcntl.h>
#include <grp.h>
#include <limits.h>
-#include <netinet/in.h>
-#include <netinet/ip.h>
#include <pwd.h>
#include <signal.h>
#include <stdlib.h>
@@ -58,8 +56,6 @@
#include <stdarg.h>
#include <dirent.h>
-#include <arpa/inet.h>
-
#ifdef HAVE_UTMP_H
#include <utmp.h>
#endif
@@ -76,10 +72,20 @@
#include <lastlog.h>
#endif
+#include <arpa/inet.h>
+
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
+/* netbsd 1.6 needs this to be included before netinet/ip.h for some
+ * undocumented reason */
+#ifdef HAVE_NETINET_IN_SYSTM_H
+#include <netinet/in_systm.h>
+#endif
+
+#include <netinet/ip.h>
+
#ifdef HAVE_NETINET_TCP_H
#include <netinet/tcp.h>
#endif