]> andersk Git - openssh.git/blob - includes.h
- stevesk@cvs.openbsd.org 2006/07/26 13:57:17
[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 <stdio.h>
25
26 #ifdef HAVE_LIMITS_H
27 # include <limits.h> /* For PATH_MAX */
28 #endif
29 #ifdef HAVE_GETOPT_H
30 # include <getopt.h>
31 #endif
32 #ifdef HAVE_BSTRING_H
33 # include <bstring.h>
34 #endif
35 #if defined(HAVE_GLOB_H) && defined(GLOB_HAS_ALTDIRFUNC) && \
36     defined(GLOB_HAS_GL_MATCHC)
37 # include <glob.h>
38 #endif
39 #ifdef HAVE_ENDIAN_H
40 # include <endian.h>
41 #endif
42 #ifdef HAVE_TTYENT_H
43 # include <ttyent.h>
44 #endif
45 #ifdef HAVE_UTIME_H
46 # include <utime.h>
47 #endif
48 #ifdef HAVE_MAILLOCK_H
49 # include <maillock.h> /* For _PATH_MAILDIR */
50 #endif
51 #ifdef HAVE_NEXT
52 # include <libc.h>
53 #endif
54 #ifdef HAVE_PATHS
55 # include <paths.h>
56 #endif
57
58 /*
59  *-*-nto-qnx needs these headers for strcasecmp and LASTLOG_FILE respectively
60  */
61 #ifdef HAVE_STRINGS_H
62 # include <strings.h>
63 #endif
64 #ifdef HAVE_LOGIN_H
65 # include <login.h>
66 #endif
67
68 #ifdef HAVE_UTMP_H
69 #  include <utmp.h>
70 #endif
71 #ifdef HAVE_UTMPX_H
72 #  include <utmpx.h>
73 #endif
74 #ifdef HAVE_LASTLOG_H
75 #  include <lastlog.h>
76 #endif
77
78 #ifdef HAVE_SYS_SELECT_H
79 # include <sys/select.h>
80 #endif
81 #ifdef HAVE_SYS_BSDTTY_H
82 # include <sys/bsdtty.h>
83 #endif
84 #ifdef HAVE_STDINT_H
85 # include <stdint.h>
86 #endif
87 #include <termios.h>
88 #ifdef HAVE_SYS_BITYPES_H
89 # include <sys/bitypes.h> /* For u_intXX_t */
90 #endif
91 #ifdef HAVE_SYS_CDEFS_H
92 # include <sys/cdefs.h> /* For __P() */
93 #endif
94 #ifdef HAVE_SYS_STAT_H
95 # include <sys/stat.h> /* For S_* constants and macros */
96 #endif
97 #ifdef HAVE_SYS_SYSMACROS_H
98 # include <sys/sysmacros.h> /* For MIN, MAX, etc */
99 #endif
100 #ifdef HAVE_SYS_MMAN_H
101 #include <sys/mman.h> /* for MAP_ANONYMOUS */
102 #endif
103 #ifdef HAVE_SYS_STRTIO_H
104 #include <sys/strtio.h> /* for TIOCCBRK on HP-UX */
105 #endif
106 #if defined(HAVE_SYS_PTMS_H) && defined(HAVE_DEV_PTMX)
107 # if defined(HAVE_SYS_STREAM_H)
108 #  include <sys/stream.h>       /* reqd for queue_t on Solaris 2.5.1 */
109 # endif
110 #include <sys/ptms.h>   /* for grantpt() and friends */
111 #endif
112
113 #include <netinet/in_systm.h> /* For typedefs */
114 #ifdef HAVE_RPC_TYPES_H
115 # include <rpc/types.h> /* For INADDR_LOOPBACK */
116 #endif
117 #ifdef USE_PAM
118 #if defined(HAVE_SECURITY_PAM_APPL_H)
119 # include <security/pam_appl.h>
120 #elif defined (HAVE_PAM_PAM_APPL_H)
121 # include <pam/pam_appl.h>
122 #endif
123 #endif
124 #ifdef HAVE_READPASSPHRASE_H
125 # include <readpassphrase.h>
126 #endif
127
128 #ifdef HAVE_IA_H
129 # include <ia.h>
130 #endif
131
132 #ifdef HAVE_IAF_H
133 # include <iaf.h>
134 #endif
135
136 #ifdef HAVE_TMPDIR_H
137 # include <tmpdir.h>
138 #endif
139
140 #ifdef HAVE_LIBUTIL_H
141 # include <libutil.h> /* Openpty on FreeBSD at least */
142 #endif
143
144 #if defined(KRB5) && defined(USE_AFS)
145 # include <krb5.h>
146 # include <kafs.h>
147 #endif
148
149 #if defined(HAVE_SYS_SYSLOG_H)
150 # include <sys/syslog.h>
151 #endif
152
153 /*
154  * On HP-UX 11.11, shadow.h and prot.h provide conflicting declarations
155  * of getspnam when _INCLUDE__STDC__ is defined, so we unset it here.
156  */
157 #ifdef GETSPNAM_CONFLICTING_DEFS
158 # ifdef _INCLUDE__STDC__
159 #  undef _INCLUDE__STDC__
160 # endif
161 #endif
162
163 #include <openssl/opensslv.h> /* For OPENSSL_VERSION_NUMBER */
164
165 #include "defines.h"
166
167 #include "openbsd-compat/openbsd-compat.h"
168 #include "openbsd-compat/bsd-nextstep.h"
169
170 #include "entropy.h"
171
172 #endif /* INCLUDES_H */
This page took 0.375748 seconds and 5 git commands to generate.