comparison includes.h @ 254:8b62b0ea8f3b

* include netinet/in_systm.h if available before netinet/ip.h, since netbsd seems to require it for some reason. hooray for many unices.
author Matt Johnston <matt@ucc.asn.au>
date Mon, 31 Oct 2005 07:49:57 +0000
parents b02e8eef3c3a
children a3a68c25035e
comparison
equal deleted inserted replaced
253:84925eceeb13 254:8b62b0ea8f3b
42 #include <stdio.h> 42 #include <stdio.h>
43 #include <errno.h> 43 #include <errno.h>
44 #include <fcntl.h> 44 #include <fcntl.h>
45 #include <grp.h> 45 #include <grp.h>
46 #include <limits.h> 46 #include <limits.h>
47 #include <netinet/in.h>
48 #include <netinet/ip.h>
49 #include <pwd.h> 47 #include <pwd.h>
50 #include <signal.h> 48 #include <signal.h>
51 #include <stdlib.h> 49 #include <stdlib.h>
52 #include <string.h> 50 #include <string.h>
53 #include <termios.h> 51 #include <termios.h>
55 #include <syslog.h> 53 #include <syslog.h>
56 #include <netdb.h> 54 #include <netdb.h>
57 #include <ctype.h> 55 #include <ctype.h>
58 #include <stdarg.h> 56 #include <stdarg.h>
59 #include <dirent.h> 57 #include <dirent.h>
60
61 #include <arpa/inet.h>
62 58
63 #ifdef HAVE_UTMP_H 59 #ifdef HAVE_UTMP_H
64 #include <utmp.h> 60 #include <utmp.h>
65 #endif 61 #endif
66 62
74 70
75 #ifdef HAVE_LASTLOG_H 71 #ifdef HAVE_LASTLOG_H
76 #include <lastlog.h> 72 #include <lastlog.h>
77 #endif 73 #endif
78 74
75 #include <arpa/inet.h>
76
79 #ifdef HAVE_NETINET_IN_H 77 #ifdef HAVE_NETINET_IN_H
80 #include <netinet/in.h> 78 #include <netinet/in.h>
81 #endif 79 #endif
80
81 /* netbsd 1.6 needs this to be included before netinet/ip.h for some
82 * undocumented reason */
83 #ifdef HAVE_NETINET_IN_SYSTM_H
84 #include <netinet/in_systm.h>
85 #endif
86
87 #include <netinet/ip.h>
82 88
83 #ifdef HAVE_NETINET_TCP_H 89 #ifdef HAVE_NETINET_TCP_H
84 #include <netinet/tcp.h> 90 #include <netinet/tcp.h>
85 #endif 91 #endif
86 92