1 /* $OpenBSD: includes.h,v 1.17 2002/01/26 16:44:22 stevesk Exp $ */
2 /* $FreeBSD: src/crypto/openssh/includes.h,v 1.2.2.7 2003/02/03 17:31:06 des Exp $ */
5 * Author: Tatu Ylonen <ylo@cs.hut.fi>
6 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
8 * This file includes most of the needed system headers.
10 * As far as I am concerned, the code I have written for this software
11 * can be used freely for any purpose. Any derived versions of this
12 * software must be clearly marked as such, and if the derived work is
13 * incompatible with the protocol description in the RFC file, it must be
14 * called by a name other than "ssh" or "Secure Shell".
28 #include <fcntl.h> /* For O_NONBLOCK */
39 # include <limits.h> /* For PATH_MAX */
47 #if defined(HAVE_GLOB_H) && defined(GLOB_HAS_ALTDIRFUNC) && \
48 defined(GLOB_HAS_GL_MATCHC)
51 #ifdef HAVE_NETGROUP_H
52 # include <netgroup.h>
54 #if defined(HAVE_NETDB_H)
66 #ifdef HAVE_MAILLOCK_H
67 # include <maillock.h> /* For _PATH_MAILDIR */
72 #include <unistd.h> /* For STDIN_FILENO, etc */
73 #include <termios.h> /* Struct winsize */
76 *-*-nto-qnx needs these headers for strcasecmp and LASTLOG_FILE respectively
89 # ifdef HAVE_TV_IN_UTMPX
90 # include <sys/time.h>
98 # include <paths.h> /* For _PATH_XXX */
101 #include <sys/types.h>
102 #include <sys/socket.h>
103 #include <sys/ioctl.h>
104 #include <sys/wait.h>
105 #ifdef HAVE_SYS_TIME_H
106 # include <sys/time.h> /* For timersub */
108 #include <sys/resource.h>
109 #ifdef HAVE_SYS_SELECT_H
110 # include <sys/select.h>
112 #ifdef HAVE_SYS_BSDTTY_H
113 # include <sys/bsdtty.h>
115 #include <sys/param.h> /* For MAXPATHLEN and roundup() */
117 # include <sys/un.h> /* For sockaddr_un */
122 #ifdef HAVE_SYS_BITYPES_H
123 # include <sys/bitypes.h> /* For u_intXX_t */
125 #ifdef HAVE_SYS_CDEFS_H
126 # include <sys/cdefs.h> /* For __P() */
128 #ifdef HAVE_SYS_STAT_H
129 # include <sys/stat.h> /* For S_* constants and macros */
131 #ifdef HAVE_SYS_SYSMACROS_H
132 # include <sys/sysmacros.h> /* For MIN, MAX, etc */
134 #ifdef HAVE_SYS_MMAN_H
135 #include <sys/mman.h> /* for MAP_ANONYMOUS */
138 #include <netinet/in_systm.h> /* For typedefs */
139 #include <netinet/in.h> /* For IPv6 macros */
140 #include <netinet/ip.h> /* For IPTOS macros */
141 #include <netinet/tcp.h>
142 #include <arpa/inet.h>
143 #ifdef HAVE_RPC_TYPES_H
144 # include <rpc/types.h> /* For INADDR_LOOPBACK */
147 # include <security/pam_appl.h>
149 #ifdef HAVE_READPASSPHRASE_H
150 # include <readpassphrase.h>
161 #include <openssl/opensslv.h> /* For OPENSSL_VERSION_NUMBER */
166 #include "openbsd-compat/openbsd-compat.h"
167 #include "openbsd-compat/bsd-cygwin_util.h"
168 #include "openbsd-compat/bsd-nextstep.h"
172 #endif /* INCLUDES_H */