]> andersk Git - openssh.git/blob - includes.h
- (djm) [includes.h monitor.c openbsd-compat/bindresvport.c]
[openssh.git] / includes.h
1 /* $OpenBSD: includes.h,v 1.54 2006/07/22 20:48:23 stevesk Exp $ */
2
3 /*
4  * Author: Tatu Ylonen <ylo@cs.hut.fi>
5  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
6  *                    All rights reserved
7  * This file includes most of the needed system headers.
8  *
9  * As far as I am concerned, the code I have written for this software
10  * can be used freely for any purpose.  Any derived versions of this
11  * software must be clearly marked as such, and if the derived work is
12  * incompatible with the protocol description in the RFC file, it must be
13  * called by a name other than "ssh" or "Secure Shell".
14  */
15
16 #ifndef INCLUDES_H
17 #define INCLUDES_H
18
19 #include "config.h"
20
21 #define _GNU_SOURCE /* activate extra prototypes for glibc */
22
23 #include <sys/types.h>
24 #include <sys/socket.h> /* For CMSG_* */
25
26 #ifdef HAVE_LIMITS_H
27 # include <limits.h> /* For PATH_MAX */
28 #endif
29 #ifdef HAVE_BSTRING_H
30 # include <bstring.h>
31 #endif
32 #if defined(HAVE_GLOB_H) && defined(GLOB_HAS_ALTDIRFUNC) && \
33     defined(GLOB_HAS_GL_MATCHC)
34 # include <glob.h>
35 #endif
36 #ifdef HAVE_ENDIAN_H
37 # include <endian.h>
38 #endif
39 #ifdef HAVE_TTYENT_H
40 # include <ttyent.h>
41 #endif
42 #ifdef HAVE_UTIME_H
43 # include <utime.h>
44 #endif
45 #ifdef HAVE_MAILLOCK_H
46 # include <maillock.h> /* For _PATH_MAILDIR */
47 #endif
48 #ifdef HAVE_NEXT
49 # include <libc.h>
50 #endif
51 #ifdef HAVE_PATHS
52 # include <paths.h>
53 #endif
54
55 /*
56  *-*-nto-qnx needs these headers for strcasecmp and LASTLOG_FILE respectively
57  */
58 #ifdef HAVE_STRINGS_H
59 # include <strings.h>
60 #endif
61 #ifdef HAVE_LOGIN_H
62 # include <login.h>
63 #endif
64
65 #ifdef HAVE_UTMP_H
66 #  include <utmp.h>
67 #endif
68 #ifdef HAVE_UTMPX_H
69 #  include <utmpx.h>
70 #endif
71 #ifdef HAVE_LASTLOG_H
72 #  include <lastlog.h>
73 #endif
74
75 #ifdef HAVE_SYS_SELECT_H
76 # include <sys/select.h>
77 #endif
78 #ifdef HAVE_SYS_BSDTTY_H
79 # include <sys/bsdtty.h>
80 #endif
81 #ifdef HAVE_STDINT_H
82 # include <stdint.h>
83 #endif
84 #include <termios.h>
85 #ifdef HAVE_SYS_BITYPES_H
86 # include <sys/bitypes.h> /* For u_intXX_t */
87 #endif
88 #ifdef HAVE_SYS_CDEFS_H
89 # include <sys/cdefs.h> /* For __P() */
90 #endif
91 #ifdef HAVE_SYS_STAT_H
92 # include <sys/stat.h> /* For S_* constants and macros */
93 #endif
94 #ifdef HAVE_SYS_SYSMACROS_H
95 # include <sys/sysmacros.h> /* For MIN, MAX, etc */
96 #endif
97 #ifdef HAVE_SYS_MMAN_H
98 #include <sys/mman.h> /* for MAP_ANONYMOUS */
99 #endif
100 #ifdef HAVE_SYS_STRTIO_H
101 #include <sys/strtio.h> /* for TIOCCBRK on HP-UX */
102 #endif
103 #if defined(HAVE_SYS_PTMS_H) && defined(HAVE_DEV_PTMX)
104 # if defined(HAVE_SYS_STREAM_H)
105 #  include <sys/stream.h>       /* reqd for queue_t on Solaris 2.5.1 */
106 # endif
107 #include <sys/ptms.h>   /* for grantpt() and friends */
108 #endif
109
110 #include <netinet/in.h>
111 #include <netinet/in_systm.h> /* For typedefs */
112 #ifdef HAVE_RPC_TYPES_H
113 # include <rpc/types.h> /* For INADDR_LOOPBACK */
114 #endif
115 #ifdef USE_PAM
116 #if defined(HAVE_SECURITY_PAM_APPL_H)
117 # include <security/pam_appl.h>
118 #elif defined (HAVE_PAM_PAM_APPL_H)
119 # include <pam/pam_appl.h>
120 #endif
121 #endif
122 #ifdef HAVE_READPASSPHRASE_H
123 # include <readpassphrase.h>
124 #endif
125
126 #ifdef HAVE_IA_H
127 # include <ia.h>
128 #endif
129
130 #ifdef HAVE_IAF_H
131 # include <iaf.h>
132 #endif
133
134 #ifdef HAVE_TMPDIR_H
135 # include <tmpdir.h>
136 #endif
137
138 #ifdef HAVE_LIBUTIL_H
139 # include <libutil.h> /* Openpty on FreeBSD at least */
140 #endif
141
142 #if defined(KRB5) && defined(USE_AFS)
143 # include <krb5.h>
144 # include <kafs.h>
145 #endif
146
147 #if defined(HAVE_SYS_SYSLOG_H)
148 # include <sys/syslog.h>
149 #endif
150
151 /*
152  * On HP-UX 11.11, shadow.h and prot.h provide conflicting declarations
153  * of getspnam when _INCLUDE__STDC__ is defined, so we unset it here.
154  */
155 #ifdef GETSPNAM_CONFLICTING_DEFS
156 # ifdef _INCLUDE__STDC__
157 #  undef _INCLUDE__STDC__
158 # endif
159 #endif
160
161 #include <openssl/opensslv.h> /* For OPENSSL_VERSION_NUMBER */
162
163 #include "defines.h"
164
165 #include "platform.h"
166 #include "openbsd-compat/openbsd-compat.h"
167 #include "openbsd-compat/bsd-nextstep.h"
168
169 #include "entropy.h"
170
171 #endif /* INCLUDES_H */
This page took 0.064825 seconds and 5 git commands to generate.