summaryrefslogtreecommitdiff
path: root/includes.h
diff options
context:
space:
mode:
authorTim Rice <tim@multitalents.net>2002-04-11 20:35:39 -0700
committerTim Rice <tim@multitalents.net>2002-04-11 20:35:39 -0700
commit813f0452edb4e6ac8bd07b1e8ea5b60ec46874e8 (patch)
tree3d6e832d042cd8c1033a53181449a9e18ed69911 /includes.h
parent0c283d8444cace9aad1793b9ebdbceb4726c6d9a (diff)
[acconfig.h defines.h includes.h] put includes in includes.h and
defines in defines.h [rijndael.c openbsd-compat/fake-socket.h openbsd-compat/inet_aton.c] include "includes.h" instead of "config.h" ok stevesk@
Diffstat (limited to 'includes.h')
-rw-r--r--includes.h114
1 files changed, 84 insertions, 30 deletions
diff --git a/includes.h b/includes.h
index df91404e8..a63e87243 100644
--- a/includes.h
+++ b/includes.h
@@ -21,21 +21,10 @@ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg }
21 21
22#include "config.h" 22#include "config.h"
23 23
24#include "openbsd-compat/bsd-nextstep.h"
25
26#include <sys/types.h>
27#include <sys/socket.h>
28#include <sys/ioctl.h>
29#include <sys/wait.h>
30#include <sys/resource.h>
31
32#include <netinet/tcp.h>
33#include <arpa/inet.h>
34
35#include <stdio.h> 24#include <stdio.h>
36#include <ctype.h> 25#include <ctype.h>
37#include <errno.h> 26#include <errno.h>
38#include <fcntl.h> 27#include <fcntl.h> /* For O_NONBLOCK */
39#include <signal.h> 28#include <signal.h>
40#include <stdlib.h> 29#include <stdlib.h>
41#include <string.h> 30#include <string.h>
@@ -46,14 +35,11 @@ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg }
46#include <dirent.h> 35#include <dirent.h>
47 36
48#ifdef HAVE_LIMITS_H 37#ifdef HAVE_LIMITS_H
49# include <limits.h> 38# include <limits.h> /* For PATH_MAX */
50#endif 39#endif
51#ifdef HAVE_GETOPT_H 40#ifdef HAVE_GETOPT_H
52# include <getopt.h> 41# include <getopt.h>
53#endif 42#endif
54#ifndef HAVE_GETOPT_OPTRESET
55#define getopt(ac, av, o) BSDgetopt(ac, av, o)
56#endif
57#ifdef HAVE_BSTRING_H 43#ifdef HAVE_BSTRING_H
58# include <bstring.h> 44# include <bstring.h>
59#endif 45#endif
@@ -70,34 +56,102 @@ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg }
70#ifdef HAVE_ENDIAN_H 56#ifdef HAVE_ENDIAN_H
71# include <endian.h> 57# include <endian.h>
72#endif 58#endif
73#ifdef HAVE_SYS_SELECT_H 59#ifdef HAVE_TTYENT_H
74# include <sys/select.h> 60# include <ttyent.h>
61#endif
62#ifdef HAVE_UTIME_H
63# include <utime.h>
64#endif
65#ifdef HAVE_MAILLOCK_H
66# include <maillock.h> /* For _PATH_MAILDIR */
67#endif
68#ifdef HAVE_NEXT
69# include <libc.h>
70#endif
71#include <unistd.h> /* For STDIN_FILENO, etc */
72#include <termios.h> /* Struct winsize */
73
74/*
75 *-*-nto-qnx needs these headers for strcasecmp and LASTLOG_FILE respectively
76 */
77#ifdef HAVE_STRINGS_H
78# include <strings.h>
79#endif
80#ifdef HAVE_LOGIN_H
81# include <login.h>
82#endif
83
84#ifdef HAVE_UTMP_H
85# include <utmp.h>
86#endif
87#ifdef HAVE_UTMPX_H
88# ifdef HAVE_TV_IN_UTMPX
89# include <sys/time.h>
90# endif
91# include <utmpx.h>
92#endif
93#ifdef HAVE_LASTLOG_H
94# include <lastlog.h>
95#endif
96#ifdef HAVE_PATHS_H
97# include <paths.h> /* For _PATH_XXX */
75#endif 98#endif
99
100#include <sys/types.h>
101#include <sys/socket.h>
102#include <sys/ioctl.h>
103#include <sys/wait.h>
76#ifdef HAVE_SYS_TIME_H 104#ifdef HAVE_SYS_TIME_H
77# include <sys/time.h> 105# include <sys/time.h> /* For timersub */
106#endif
107#include <sys/resource.h>
108#ifdef HAVE_SYS_SELECT_H
109# include <sys/select.h>
78#endif 110#endif
79#ifdef HAVE_SYS_BSDTTY_H 111#ifdef HAVE_SYS_BSDTTY_H
80# include <sys/bsdtty.h> 112# include <sys/bsdtty.h>
81#endif 113#endif
82#ifdef HAVE_TTYENT_H 114#include <sys/param.h> /* For MAXPATHLEN and roundup() */
83# include <ttyent.h> 115#ifdef HAVE_SYS_UN_H
116# include <sys/un.h> /* For sockaddr_un */
84#endif 117#endif
85#ifdef USE_PAM 118#ifdef HAVE_SYS_BITYPES_H
86# include <security/pam_appl.h> 119# include <sys/bitypes.h> /* For u_intXX_t */
120#endif
121#ifdef HAVE_SYS_CDEFS_H
122# include <sys/cdefs.h> /* For __P() */
123#endif
124#ifdef HAVE_SYS_STAT_H
125# include <sys/stat.h> /* For S_* constants and macros */
87#endif 126#endif
88#ifdef HAVE_SYS_SYSMACROS_H 127#ifdef HAVE_SYS_SYSMACROS_H
89# include <sys/sysmacros.h> 128# include <sys/sysmacros.h> /* For MIN, MAX, etc */
90#endif 129#endif
91#ifdef HAVE_UTIME_H 130#ifdef HAVE_SYS_MMAN_H
92# include <utime.h> 131#include <sys/mman.h> /* for MAP_ANONYMOUS */
132#endif
133
134#include <netinet/in_systm.h> /* For typedefs */
135#include <netinet/in.h> /* For IPv6 macros */
136#include <netinet/ip.h> /* For IPTOS macros */
137#include <netinet/tcp.h>
138#include <arpa/inet.h>
139#ifdef HAVE_RPC_TYPES_H
140# include <rpc/types.h> /* For INADDR_LOOPBACK */
141#endif
142#ifdef USE_PAM
143# include <security/pam_appl.h>
93#endif 144#endif
145
146#include <openssl/opensslv.h> /* For OPENSSL_VERSION_NUMBER */
147
148#include "defines.h"
149
94#include "version.h" 150#include "version.h"
95#include "openbsd-compat/openbsd-compat.h" 151#include "openbsd-compat/openbsd-compat.h"
96#include "openbsd-compat/bsd-cygwin_util.h" 152#include "openbsd-compat/bsd-cygwin_util.h"
97#include "entropy.h" 153#include "openbsd-compat/bsd-nextstep.h"
98 154
99#ifndef MAP_FAILED 155#include "entropy.h"
100# define MAP_FAILED ((void *)-1)
101#endif
102 156
103#endif /* INCLUDES_H */ 157#endif /* INCLUDES_H */