mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-21 21:34:17 -04:00
- Use off_t if SIZEOF_OFF_T is 8.
- Define USE_STAT64_FUNCS if we defined STRUCT_STAT as "struct stat64".
This commit is contained in:
1 parent
dc3afaf6aa
commit
5b5f7e3b59
1 file changed
+5
-4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user