Mercurial > dropbear
comparison includes.h @ 293:9d110777f345 contrib-blacklist
propagate from branch 'au.asn.ucc.matt.dropbear' (head 7ad1775ed65e75dbece27fe6b65bf1a234db386a)
to branch 'au.asn.ucc.matt.dropbear.contrib.blacklist' (head 1d86a4f0a401cc68c2670d821a2f6366c37af143)
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 10 Mar 2006 06:31:29 +0000 |
parents | a3a68c25035e |
children | 740e782679be e17f0333c21e 1bfa65fed772 |
comparison
equal
deleted
inserted
replaced
247:c07de41b53d7 | 293:9d110777f345 |
---|---|
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 <pwd.h> | 47 #include <pwd.h> |
49 #include <signal.h> | 48 #include <signal.h> |
50 #include <stdlib.h> | 49 #include <stdlib.h> |
51 #include <string.h> | 50 #include <string.h> |
52 #include <termios.h> | 51 #include <termios.h> |
54 #include <syslog.h> | 53 #include <syslog.h> |
55 #include <netdb.h> | 54 #include <netdb.h> |
56 #include <ctype.h> | 55 #include <ctype.h> |
57 #include <stdarg.h> | 56 #include <stdarg.h> |
58 #include <dirent.h> | 57 #include <dirent.h> |
59 | |
60 #include <arpa/inet.h> | |
61 | 58 |
62 #ifdef HAVE_UTMP_H | 59 #ifdef HAVE_UTMP_H |
63 #include <utmp.h> | 60 #include <utmp.h> |
64 #endif | 61 #endif |
65 | 62 |
73 | 70 |
74 #ifdef HAVE_LASTLOG_H | 71 #ifdef HAVE_LASTLOG_H |
75 #include <lastlog.h> | 72 #include <lastlog.h> |
76 #endif | 73 #endif |
77 | 74 |
75 #include <arpa/inet.h> | |
76 | |
78 #ifdef HAVE_NETINET_IN_H | 77 #ifdef HAVE_NETINET_IN_H |
79 #include <netinet/in.h> | 78 #include <netinet/in.h> |
80 #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> | |
81 | 88 |
82 #ifdef HAVE_NETINET_TCP_H | 89 #ifdef HAVE_NETINET_TCP_H |
83 #include <netinet/tcp.h> | 90 #include <netinet/tcp.h> |
84 #endif | 91 #endif |
85 | 92 |
126 | 133 |
127 #ifndef LOG_AUTHPRIV | 134 #ifndef LOG_AUTHPRIV |
128 #define LOG_AUTHPRIV LOG_AUTH | 135 #define LOG_AUTHPRIV LOG_AUTH |
129 #endif | 136 #endif |
130 | 137 |
138 /* glibc 2.1.3 systems have sockaddr_storage.__ss_family rather than | |
139 * sockaddr_storage.ss_family */ | |
140 #if !defined(HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY) \ | |
141 && defined(HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY) | |
142 #define ss_family __ss_family | |
143 #endif | |
144 | |
131 /* so we can avoid warnings about unused params (ie in signal handlers etc) */ | 145 /* so we can avoid warnings about unused params (ie in signal handlers etc) */ |
132 #ifdef UNUSED | 146 #ifdef UNUSED |
133 #elif defined(__GNUC__) | 147 #elif defined(__GNUC__) |
134 # define UNUSED(x) UNUSED_ ## x __attribute__((unused)) | 148 # define UNUSED(x) UNUSED_ ## x __attribute__((unused)) |
135 #elif defined(__LCLINT__) | 149 #elif defined(__LCLINT__) |