/* includes.h Author: Tatu Ylonen Copyright (c) 1995 Tatu Ylonen , Espoo, Finland All rights reserved Created: Thu Mar 23 16:29:37 1995 ylo This file includes most of the needed system headers. */ /* RCSID("$Id: includes.h,v 1.5 1999/09/30 05:03:04 deraadt Exp $"); */ #ifndef INCLUDES_H #define INCLUDES_H /* Note: autoconf documentation tells to use the <...> syntax and have -I. */ #include #include "version.h" typedef unsigned short word16; #if SIZEOF_LONG == 4 typedef unsigned long word32; #else #if SIZEOF_INT == 4 typedef unsigned int word32; #else #if SIZEOF_SHORT >= 4 typedef unsigned short word32; #else YOU_LOSE #endif #endif #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #ifdef HAVE_UNISTD_H #include #endif /* HAVE_UNISTD_H */ #include #include #include #if HAVE_DIRENT_H #include #define NAMLEN(dirent) strlen((dirent)->d_name) #else #define dirent direct #define NAMLEN(dirent) (dirent)->d_namlen #if HAVE_SYS_NDIR_H #include #endif #if HAVE_SYS_DIR_H #include #endif #if HAVE_NDIR_H #include #endif #endif #include #if USE_STRLEN_FOR_AF_UNIX #define AF_UNIX_SIZE(unaddr) \ (sizeof((unaddr).sun_family) + strlen((unaddr).sun_path) + 1) #else #define AF_UNIX_SIZE(unaddr) sizeof(unaddr) #endif #endif /* INCLUDES_H */