From 2c1775620a18b1d7b4ac2cffca14d948beb78570 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sat, 9 Sep 2006 18:53:23 +0000 Subject: [PATCH] Try various long, long-long, etc. types for a 64-bit integer before trying off64_t. --- rsync.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rsync.h b/rsync.h index 99f62e31..26379eb8 100644 --- a/rsync.h +++ b/rsync.h @@ -389,10 +389,7 @@ enum msgcode { * to ensure that any code that really requires a 64-bit integer has * it (e.g. the checksum code uses two 32-bit integers for its 64-bit * counter). */ -#if SIZEOF_OFF64_T == 8 -# define int64 off64_t -# define SIZEOF_INT64 8 -#elif SIZEOF_LONG == 8 +#if SIZEOF_LONG == 8 # define int64 long # define SIZEOF_INT64 8 #elif SIZEOF_INT == 8 @@ -401,6 +398,9 @@ enum msgcode { #elif SIZEOF_LONG_LONG == 8 # define int64 long long # define SIZEOF_INT64 8 +#elif SIZEOF_OFF64_T == 8 +# define int64 off64_t +# define SIZEOF_INT64 8 #elif SIZEOF_OFF_T == 8 # define int64 off_t # define SIZEOF_INT64 8 -- 2.34.1