mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-26 15:48:22 -04:00
Make use of new HAVE_STRUCT_STAT64 define.
This commit is contained in:
1 parent
c83a2c8ec5
commit
1164f67827
2 files changed
+5
-12
No files matched your search
@@ -181,13 +181,6 @@ enum msgcode {
|
||||
#if HAVE_STRINGS_H
|
||||
# include <strings.h>
|
||||
#endif
|
||||
#if HAVE_INTTYPES_H
|
||||
# include <inttypes.h>
|
||||
#else
|
||||
# if HAVE_STDINT_H
|
||||
# include <stdint.h>
|
||||
# endif
|
||||
#endif
|
||||
#if HAVE_UNISTD_H
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
@@ -347,7 +340,7 @@ enum msgcode {
|
||||
#define uint32 unsigned int32
|
||||
#endif
|
||||
|
||||
#if SIZEOF_OFF64_T
|
||||
#if SIZEOF_OFF64_T && HAVE_STRUCT_STAT64
|
||||
#define OFF_T off64_t
|
||||
#define STRUCT_STAT struct stat64
|
||||
#else
|
||||
|
||||
@@ -212,7 +212,7 @@ int do_mkstemp(char *template, mode_t perms)
|
||||
|
||||
int do_stat(const char *fname, STRUCT_STAT *st)
|
||||
{
|
||||
#if SIZEOF_OFF64_T
|
||||
#if SIZEOF_OFF64_T && HAVE_STRUCT_STAT64
|
||||
return stat64(fname, st);
|
||||
#else
|
||||
return stat(fname, st);
|
||||
@@ -222,7 +222,7 @@ int do_stat(const char *fname, STRUCT_STAT *st)
|
||||
int do_lstat(const char *fname, STRUCT_STAT *st)
|
||||
{
|
||||
#if SUPPORT_LINKS
|
||||
# if SIZEOF_OFF64_T
|
||||
# if SIZEOF_OFF64_T && HAVE_STRUCT_STAT64
|
||||
return lstat64(fname, st);
|
||||
# else
|
||||
return lstat(fname, st);
|
||||
@@ -234,7 +234,7 @@ int do_lstat(const char *fname, STRUCT_STAT *st)
|
||||
|
||||
int do_fstat(int fd, STRUCT_STAT *st)
|
||||
{
|
||||
#if SIZEOF_OFF64_T
|
||||
#if SIZEOF_OFF64_T && HAVE_STRUCT_STAT64
|
||||
return fstat64(fd, st);
|
||||
#else
|
||||
return fstat(fd, st);
|
||||
@@ -243,7 +243,7 @@ int do_fstat(int fd, STRUCT_STAT *st)
|
||||
|
||||
OFF_T do_lseek(int fd, OFF_T offset, int whence)
|
||||
{
|
||||
#if SIZEOF_OFF64_T
|
||||
#if SIZEOF_OFF64_T && HAVE_STRUCT_STAT64
|
||||
off64_t lseek64();
|
||||
return lseek64(fd, offset, whence);
|
||||
#else
|
||||
|
||||
Reference in new issue
Block a user