X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/43d0f38b2474d864307d81d259c5874d01b8fbf8..5b5f7e3b59ec2e2b45a35edf337cbed7fcd94f30:/rsync.h diff --git a/rsync.h b/rsync.h index 7d04bfb8..013ba700 100644 --- a/rsync.h +++ b/rsync.h @@ -181,13 +181,6 @@ enum msgcode { #if HAVE_STRINGS_H # include #endif -#if HAVE_INTTYPES_H -# include -#else -# if HAVE_STDINT_H -# include -# endif -#endif #if HAVE_UNISTD_H # include #endif @@ -347,12 +340,13 @@ enum msgcode { #define uint32 unsigned int32 #endif -#if SIZEOF_OFF64_T -#define OFF_T off64_t -#define STRUCT_STAT struct stat64 -#else +#if SIZEOF_OFF_T == 8 || !SIZEOF_OFF64_T || !HAVE_STRUCT_STAT64 #define OFF_T off_t #define STRUCT_STAT struct stat +#else +#define OFF_T off64_t +#define STRUCT_STAT struct stat64 +#define USE_STAT64_FUNCS 1 #endif /* CAVEAT: on some systems, int64 will really be a 32-bit integer IFF