]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
- Use off_t if SIZEOF_OFF_T is 8.
authorWayne Davison <wayned@samba.org>
Fri, 28 Jan 2005 20:32:47 +0000 (20:32 +0000)
committerWayne Davison <wayned@samba.org>
Fri, 28 Jan 2005 20:32:47 +0000 (20:32 +0000)
- Define USE_STAT64_FUNCS if we defined STRUCT_STAT as
  "struct stat64".

rsync.h

diff --git a/rsync.h b/rsync.h
index 87c969c95efad2f18f96967121042a1458ffb971..013ba700f83e56a608cc5857f593e561777bcfda 100644 (file)
--- a/rsync.h
+++ b/rsync.h
@@ -340,12 +340,13 @@ enum msgcode {
 #define uint32 unsigned int32
 #endif
 
-#if SIZEOF_OFF64_T && HAVE_STRUCT_STAT64
-#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