Make use of new HAVE_STRUCT_STAT64 define.
[rsync/rsync.git] / rsync.h
diff --git a/rsync.h b/rsync.h
index 7d04bfb..87c969c 100644 (file)
--- a/rsync.h
+++ b/rsync.h
@@ -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