#ifndef CYGUTILS_COMMON_H #define CYGUTILS_COMMON_H 1 #if HAVE_CONFIG_H # include #endif #include #if HAVE_SYS_TYPES_H # include #endif /* HAVE_SYS_TYPES_H */ #if HAVE_SYS_STAT_H # include #endif /* HAVE_SYS_STAT_H */ #if STDC_HEADERS # include # include #else # if HAVE_STDLIB_H # include # endif #endif /*STDC_HEADERS*/ #if HAVE_STRING_H # if !STDC_HEADERS && HAVE_MEMORY_H # include # endif # include #elif HAVE_STRINGS_H # include #endif /*HAVE_STRING[S]_H*/ #if HAVE_STDARG_H # include # define VA_START(a, f) va_start(a, f) #else # if HAVE_VARARGS_H # include # define VA_START(a, f) va_start(a) # endif #endif #ifndef VA_START error no variadic api #endif /* VARIADIC */ #if TIME_WITH_SYS_TIME # include # include #else # if HAVE_SYS_TIME_H # include # else # include # endif #endif /* TIME */ #if HAVE_UNISTD_H # include #endif /*HAVE_UNISTD_H*/ #if HAVE_SYS_PARAM_H # include #endif /*HAVE_SYS_PARAM_H */ #if HAVE_ERRNO_H # include #endif /*HAVE_ERRNO_H*/ #if HAVE_FCNTL_H # include #endif /*HAVE_FCNTL_H*/ #if HAVE_LIMITS_H # include #endif /*HAVE_LIMITS_H*/ #if HAVE_MALLOC_H # include #endif /*HAVE_LIMITS_H*/ /* Geez, last.c/utmpdump.c have a lot of special requirements */ #if HAVE_CTYPE_H # include #endif #if HAVE_GETOPT_H # include #endif #if HAVE_UTMP_H # include #endif /* HAVE_UTMP_H */ #if HAVE_SIGNAL_H # include #endif /* HAVE_SIGNAL_H */ #if HAVE_NETINET_IN_H # include #endif /* HAVE_NETINET_IN_H */ #if HAVE_NETDB_H # include #endif /* HAVE_NETDB_H */ #if HAVE_ARPA_INET_H # include #endif /* HAVE_ARPA_INET_H */ #if HAVE_SYS_SOCKET_H # include #endif /* HAVE_SYS_SOCKET_H */ /* End: last.c/utmpdump.c stuff */ #if HAVE_POPT_H # include #endif /*HAVE_POPT_H*/ #if HAVE_WINDOWS_H # include #else # ifndef O_BINARY # define O_BINARY 0 # endif # define setmode(a, b) #endif /*HAVE_WINDOWS_H*/ /* we don't include wchar.h or wctype.h here. let widechar.h do that */ #endif /* !CYGUTILS_COMMON_H */