compat.h revision 0066c4346f1ebf4dae0862538b596dca6fb8b1ba
f9511e684858bf5f6ac77ab12254b85b737beae8Stephan Bosch/* well, this is obviously wrong since it assumes it's 64bit, but older
f9511e684858bf5f6ac77ab12254b85b737beae8Stephan Bosch GCCs don't define it and we really want it. */
009217abb57a24a4076092e8e4e165545747839eStephan Boschtypedef unsigned int uoff_t;
f9511e684858bf5f6ac77ab12254b85b737beae8Stephan Boschtypedef unsigned long uoff_t;
6541da94741ea43514cdac3dd2ebbcf839ffb783Stephan Boschtypedef unsigned long long uoff_t;
#ifndef HAVE_UINTMAX_T
# if SIZEOF_LONG_LONG > 0
typedef unsigned long long uintmax_t;
typedef unsigned long uintmax_t;
#ifndef HAVE_SOCKLEN_T
typedef int socklen_t;
#ifdef HAVE_SYS_SYSMACROS_H
# define CMP_DEV_T(a, b) ((a) == (b))
#ifndef HAVE_MEMMOVE
#ifndef HAVE_STRCASECMP
# ifdef HAVE_STRICMP
#ifndef HAVE_INET_ATON
#ifndef HAVE_VSYSLOG
#ifndef HAVE_GETPAGESIZE
int my_getpagesize(void);
#ifndef HAVE_FDATASYNC
#ifndef HAVE_STRUCT_IOVEC
struct iovec {
void *iov_base;
#ifndef HAVE_WRITEV
struct iovec;
/* ctype.h isn't safe with signed chars,
#ifndef EOVERFLOW