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 $ */
3 /* $DragonFly: src/crypto/openssh/Attic/includes.h,v 1.2 2003/06/17 04:24:36 dillon Exp $ */
6 * Author: Tatu Ylonen <ylo@cs.hut.fi>
7 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
9 * This file includes most of the needed system headers.
11 * As far as I am concerned, the code I have written for this software
12 * can be used freely for any purpose. Any derived versions of this
13 * software must be clearly marked as such, and if the derived work is
14 * incompatible with the protocol description in the RFC file, it must be
15 * called by a name other than "ssh" or "Secure Shell".
29 #include <fcntl.h> /* For O_NONBLOCK */
40 # include <limits.h> /* For PATH_MAX */
48 #if defined(HAVE_GLOB_H) && defined(GLOB_HAS_ALTDIRFUNC) && \
49 defined(GLOB_HAS_GL_MATCHC)
52 #ifdef HAVE_NETGROUP_H
53 # include <netgroup.h>
55 #if defined(HAVE_NETDB_H)
67 #ifdef HAVE_MAILLOCK_H
68 # include <maillock.h> /* For _PATH_MAILDIR */
73 #include <unistd.h> /* For STDIN_FILENO, etc */
74 #include <termios.h> /* Struct winsize */
77 *-*-nto-qnx needs these headers for strcasecmp and LASTLOG_FILE respectively
90 # ifdef HAVE_TV_IN_UTMPX
91 # include <sys/time.h>
99 # include <paths.h> /* For _PATH_XXX */
102 #include <sys/types.h>
103 #include <sys/socket.h>
104 #include <sys/ioctl.h>
105 #include <sys/wait.h>
106 #ifdef HAVE_SYS_TIME_H
107 # include <sys/time.h> /* For timersub */
109 #include <sys/resource.h>
110 #ifdef HAVE_SYS_SELECT_H
111 # include <sys/select.h>
113 #ifdef HAVE_SYS_BSDTTY_H
114 # include <sys/bsdtty.h>
116 #include <sys/param.h> /* For MAXPATHLEN and roundup() */
118 # include <sys/un.h> /* For sockaddr_un */
123 #ifdef HAVE_SYS_BITYPES_H
124 # include <sys/bitypes.h> /* For u_intXX_t */
126 #ifdef HAVE_SYS_CDEFS_H
127 # include <sys/cdefs.h> /* For __P() */
129 #ifdef HAVE_SYS_STAT_H
130 # include <sys/stat.h> /* For S_* constants and macros */
132 #ifdef HAVE_SYS_SYSMACROS_H
133 # include <sys/sysmacros.h> /* For MIN, MAX, etc */
135 #ifdef HAVE_SYS_MMAN_H
136 #include <sys/mman.h> /* for MAP_ANONYMOUS */
139 #include <netinet/in_systm.h> /* For typedefs */
140 #include <netinet/in.h> /* For IPv6 macros */
141 #include <netinet/ip.h> /* For IPTOS macros */
142 #include <netinet/tcp.h>
143 #include <arpa/inet.h>
144 #ifdef HAVE_RPC_TYPES_H
145 # include <rpc/types.h> /* For INADDR_LOOPBACK */
148 # include <security/pam_appl.h>
150 #ifdef HAVE_READPASSPHRASE_H
151 # include <readpassphrase.h>
162 #include <openssl/opensslv.h> /* For OPENSSL_VERSION_NUMBER */
167 #include "openbsd-compat/openbsd-compat.h"
168 #include "openbsd-compat/bsd-cygwin_util.h"
169 #include "openbsd-compat/bsd-nextstep.h"
173 #endif /* INCLUDES_H */