#ifndef DEFS_H #define DEFS_H #ifdef HAVE_CONFIG_H #include #endif #include #if HAVE_SYS_TYPES_H # include #endif #if HAVE_SYS_STAT_H # include #endif #if STDC_HEADERS # include # include #else # if HAVE_STDLIB_H # include # endif #endif #if HAVE_STRING_H # if !STDC_HEADERS && HAVE_MEMORY_H # include # endif # include #else # if HAVE_STRINGS_H # include # endif #endif #if HAVE_INTTYPES_H # include #else # if HAVE_STDINT_H # include # endif #endif #if HAVE_UNISTD_H # include #endif #if TIME_WITH_SYS_TIME # include # include #else # if HAVE_SYS_TIME_H # include # else # include # endif #endif #if STDC_HEADERS # include #else # if !HAVE_MEMCPY # define memcpy(d, s, n) bcopy ((s), (d), (n)) # define memmove(d, s, n) bcopy ((s), (d), (n)) # endif #endif #if HAVE_NETINET_IN_H # include /* for htonl and ntohl */ #endif #if HAVE_ERRNO_H # include #endif #if !HAVE_U_CHAR typedef unsigned char u_char; #endif #if !HAVE_U_INT32_T # if SIZEOF_INT == 4 typedef unsigned int u_int32_t; # else # if SIZEOF_LONG == 4 typedef unsigned long u_int32_t; # endif # endif #endif #endif /* DEFS_H */