From 813f0452edb4e6ac8bd07b1e8ea5b60ec46874e8 Mon Sep 17 00:00:00 2001 From: Tim Rice Date: Thu, 11 Apr 2002 20:35:39 -0700 Subject: [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@ --- includes.h | 114 +++++++++++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 84 insertions(+), 30 deletions(-) (limited to 'includes.h') diff --git a/includes.h b/includes.h index df91404e..a63e8724 100644 --- a/includes.h +++ b/includes.h @@ -21,21 +21,10 @@ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg } #include "config.h" -#include "openbsd-compat/bsd-nextstep.h" - -#include -#include -#include -#include -#include - -#include -#include - #include #include #include -#include +#include /* For O_NONBLOCK */ #include #include #include @@ -46,14 +35,11 @@ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg } #include #ifdef HAVE_LIMITS_H -# include +# include /* For PATH_MAX */ #endif #ifdef HAVE_GETOPT_H # include #endif -#ifndef HAVE_GETOPT_OPTRESET -#define getopt(ac, av, o) BSDgetopt(ac, av, o) -#endif #ifdef HAVE_BSTRING_H # include #endif @@ -70,34 +56,102 @@ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg } #ifdef HAVE_ENDIAN_H # include #endif -#ifdef HAVE_SYS_SELECT_H -# include +#ifdef HAVE_TTYENT_H +# include +#endif +#ifdef HAVE_UTIME_H +# include +#endif +#ifdef HAVE_MAILLOCK_H +# include /* For _PATH_MAILDIR */ +#endif +#ifdef HAVE_NEXT +# include +#endif +#include /* For STDIN_FILENO, etc */ +#include /* Struct winsize */ + +/* + *-*-nto-qnx needs these headers for strcasecmp and LASTLOG_FILE respectively + */ +#ifdef HAVE_STRINGS_H +# include +#endif +#ifdef HAVE_LOGIN_H +# include +#endif + +#ifdef HAVE_UTMP_H +# include +#endif +#ifdef HAVE_UTMPX_H +# ifdef HAVE_TV_IN_UTMPX +# include +# endif +# include +#endif +#ifdef HAVE_LASTLOG_H +# include +#endif +#ifdef HAVE_PATHS_H +# include /* For _PATH_XXX */ #endif + +#include +#include +#include +#include #ifdef HAVE_SYS_TIME_H -# include +# include /* For timersub */ +#endif +#include +#ifdef HAVE_SYS_SELECT_H +# include #endif #ifdef HAVE_SYS_BSDTTY_H # include #endif -#ifdef HAVE_TTYENT_H -# include +#include /* For MAXPATHLEN and roundup() */ +#ifdef HAVE_SYS_UN_H +# include /* For sockaddr_un */ #endif -#ifdef USE_PAM -# include +#ifdef HAVE_SYS_BITYPES_H +# include /* For u_intXX_t */ +#endif +#ifdef HAVE_SYS_CDEFS_H +# include /* For __P() */ +#endif +#ifdef HAVE_SYS_STAT_H +# include /* For S_* constants and macros */ #endif #ifdef HAVE_SYS_SYSMACROS_H -# include +# include /* For MIN, MAX, etc */ #endif -#ifdef HAVE_UTIME_H -# include +#ifdef HAVE_SYS_MMAN_H +#include /* for MAP_ANONYMOUS */ +#endif + +#include /* For typedefs */ +#include /* For IPv6 macros */ +#include /* For IPTOS macros */ +#include +#include +#ifdef HAVE_RPC_TYPES_H +# include /* For INADDR_LOOPBACK */ +#endif +#ifdef USE_PAM +# include #endif + +#include /* For OPENSSL_VERSION_NUMBER */ + +#include "defines.h" + #include "version.h" #include "openbsd-compat/openbsd-compat.h" #include "openbsd-compat/bsd-cygwin_util.h" -#include "entropy.h" +#include "openbsd-compat/bsd-nextstep.h" -#ifndef MAP_FAILED -# define MAP_FAILED ((void *)-1) -#endif +#include "entropy.h" #endif /* INCLUDES_H */ -- cgit v1.2.3