Mercurial > dropbear
comparison includes.h @ 511:582cb38e4eb5 insecure-nocrypto
propagate from branch 'au.asn.ucc.matt.dropbear' (head cdcc3c729e29544e8b98a408e2dc60e4483dfd2a)
to branch 'au.asn.ucc.matt.dropbear.insecure-nocrypto' (head 0ca38a1cf349f7426ac9de34ebe4c3e3735effab)
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 06 Nov 2008 13:16:55 +0000 |
parents | 7e43f5e473b9 |
children | d194db6f9453 76097ec1a29a |
comparison
equal
deleted
inserted
replaced
361:461c4b1fb35f | 511:582cb38e4eb5 |
---|---|
36 #include <sys/socket.h> | 36 #include <sys/socket.h> |
37 #include <sys/stat.h> | 37 #include <sys/stat.h> |
38 #include <sys/time.h> | 38 #include <sys/time.h> |
39 #include <sys/un.h> | 39 #include <sys/un.h> |
40 #include <sys/wait.h> | 40 #include <sys/wait.h> |
41 #include <sys/resource.h> | |
41 | 42 |
42 #include <stdio.h> | 43 #include <stdio.h> |
43 #include <errno.h> | 44 #include <errno.h> |
44 #include <fcntl.h> | 45 #include <fcntl.h> |
45 #include <grp.h> | 46 #include <grp.h> |
53 #include <syslog.h> | 54 #include <syslog.h> |
54 #include <netdb.h> | 55 #include <netdb.h> |
55 #include <ctype.h> | 56 #include <ctype.h> |
56 #include <stdarg.h> | 57 #include <stdarg.h> |
57 #include <dirent.h> | 58 #include <dirent.h> |
59 #include <time.h> | |
58 | 60 |
59 #ifdef HAVE_UTMP_H | 61 #ifdef HAVE_UTMP_H |
60 #include <utmp.h> | 62 #include <utmp.h> |
61 #endif | 63 #endif |
62 | 64 |
70 | 72 |
71 #ifdef HAVE_LASTLOG_H | 73 #ifdef HAVE_LASTLOG_H |
72 #include <lastlog.h> | 74 #include <lastlog.h> |
73 #endif | 75 #endif |
74 | 76 |
75 #include <arpa/inet.h> | |
76 | |
77 #ifdef HAVE_NETINET_IN_H | 77 #ifdef HAVE_NETINET_IN_H |
78 #include <netinet/in.h> | 78 #include <netinet/in.h> |
79 #endif | 79 #endif |
80 | |
81 #include <arpa/inet.h> | |
80 | 82 |
81 /* netbsd 1.6 needs this to be included before netinet/ip.h for some | 83 /* netbsd 1.6 needs this to be included before netinet/ip.h for some |
82 * undocumented reason */ | 84 * undocumented reason */ |
83 #ifdef HAVE_NETINET_IN_SYSTM_H | 85 #ifdef HAVE_NETINET_IN_SYSTM_H |
84 #include <netinet/in_systm.h> | 86 #include <netinet/in_systm.h> |
133 | 135 |
134 #ifndef LOG_AUTHPRIV | 136 #ifndef LOG_AUTHPRIV |
135 #define LOG_AUTHPRIV LOG_AUTH | 137 #define LOG_AUTHPRIV LOG_AUTH |
136 #endif | 138 #endif |
137 | 139 |
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 | |
145 /* so we can avoid warnings about unused params (ie in signal handlers etc) */ | 140 /* so we can avoid warnings about unused params (ie in signal handlers etc) */ |
146 #ifdef UNUSED | 141 #ifdef UNUSED |
147 #elif defined(__GNUC__) | 142 #elif defined(__GNUC__) |
148 # define UNUSED(x) UNUSED_ ## x __attribute__((unused)) | 143 # define UNUSED(x) UNUSED_ ## x __attribute__((unused)) |
149 #elif defined(__LCLINT__) | 144 #elif defined(__LCLINT__) |