]> andersk Git - openssh.git/blob - includes.h
- stevesk@cvs.openbsd.org 2006/07/22 20:48:23
[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 <stdio.h>
24 #include <stdlib.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 #  ifdef HAVE_TV_IN_UTMPX
73 #    include <sys/time.h>
74 #  endif
75 #  include <utmpx.h>
76 #endif
77 #ifdef HAVE_LASTLOG_H
78 #  include <lastlog.h>
79 #endif
80
81 #include <sys/types.h>
82 #ifdef HAVE_SYS_TIME_H
83 # include <sys/time.h> /* For timersub */
84 #endif
85 #ifdef HAVE_SYS_SELECT_H
86 # include <sys/select.h>
87 #endif
88 #ifdef HAVE_SYS_BSDTTY_H
89 # include <sys/bsdtty.h>
90 #endif
91 #include <sys/param.h> /* For MAXPATHLEN and roundup() */
92 #ifdef HAVE_STDINT_H
93 # include <stdint.h>
94 #endif
95 #include <termios.h>
96 #ifdef HAVE_SYS_BITYPES_H
97 # include <sys/bitypes.h> /* For u_intXX_t */
98 #endif
99 #ifdef HAVE_SYS_CDEFS_H
100 # include <sys/cdefs.h> /* For __P() */
101 #endif
102 #ifdef HAVE_SYS_STAT_H
103 # include <sys/stat.h> /* For S_* constants and macros */
104 #endif
105 #ifdef HAVE_SYS_SYSMACROS_H
106 # include <sys/sysmacros.h> /* For MIN, MAX, etc */
107 #endif
108 #ifdef HAVE_SYS_MMAN_H
109 #include <sys/mman.h> /* for MAP_ANONYMOUS */
110 #endif
111 #ifdef HAVE_SYS_STRTIO_H
112 #include <sys/strtio.h> /* for TIOCCBRK on HP-UX */
113 #endif
114 #if defined(HAVE_SYS_PTMS_H) && defined(HAVE_DEV_PTMX)
115 # if defined(HAVE_SYS_STREAM_H)
116 #  include <sys/stream.h>       /* reqd for queue_t on Solaris 2.5.1 */
117 # endif
118 #include <sys/ptms.h>   /* for grantpt() and friends */
119 #endif
120
121 #include <netinet/in_systm.h> /* For typedefs */
122 #ifdef HAVE_RPC_TYPES_H
123 # include <rpc/types.h> /* For INADDR_LOOPBACK */
124 #endif
125 #ifdef USE_PAM
126 #if defined(HAVE_SECURITY_PAM_APPL_H)
127 # include <security/pam_appl.h>
128 #elif defined (HAVE_PAM_PAM_APPL_H)
129 # include <pam/pam_appl.h>
130 #endif
131 #endif
132 #ifdef HAVE_READPASSPHRASE_H
133 # include <readpassphrase.h>
134 #endif
135
136 #ifdef HAVE_IA_H
137 # include <ia.h>
138 #endif
139
140 #ifdef HAVE_IAF_H
141 # include <iaf.h>
142 #endif
143
144 #ifdef HAVE_TMPDIR_H
145 # include <tmpdir.h>
146 #endif
147
148 #ifdef HAVE_LIBUTIL_H
149 # include <libutil.h> /* Openpty on FreeBSD at least */
150 #endif
151
152 #if defined(KRB5) && defined(USE_AFS)
153 # include <krb5.h>
154 # include <kafs.h>
155 #endif
156
157 #if defined(HAVE_SYS_SYSLOG_H)
158 # include <sys/syslog.h>
159 #endif
160
161 /*
162  * On HP-UX 11.11, shadow.h and prot.h provide conflicting declarations
163  * of getspnam when _INCLUDE__STDC__ is defined, so we unset it here.
164  */
165 #ifdef GETSPNAM_CONFLICTING_DEFS
166 # ifdef _INCLUDE__STDC__
167 #  undef _INCLUDE__STDC__
168 # endif
169 #endif
170
171 #include <openssl/opensslv.h> /* For OPENSSL_VERSION_NUMBER */
172
173 #include "defines.h"
174
175 #include "openbsd-compat/openbsd-compat.h"
176 #include "openbsd-compat/bsd-nextstep.h"
177
178 #include "entropy.h"
179
180 #endif /* INCLUDES_H */
This page took 0.199057 seconds and 5 git commands to generate.