aboutsummaryrefslogtreecommitdiffstats
path: root/rsync/rsync-2.6.2/fixedwidthtypes.patch
diff options
context:
space:
mode:
Diffstat (limited to 'rsync/rsync-2.6.2/fixedwidthtypes.patch')
-rw-r--r--rsync/rsync-2.6.2/fixedwidthtypes.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/rsync/rsync-2.6.2/fixedwidthtypes.patch b/rsync/rsync-2.6.2/fixedwidthtypes.patch
index e69de29bb2..9f7d3c804d 100644
--- a/rsync/rsync-2.6.2/fixedwidthtypes.patch
+++ b/rsync/rsync-2.6.2/fixedwidthtypes.patch
@@ -0,0 +1,35 @@
+--- rsync-2.6.2/configure.in 2004-04-30 14:02:43.000000000 -0400
++++ rsync-2.6.2/configure.in 2004-05-22 13:09:42.000000000 -0400
+@@ -307,6 +307,8 @@
+ AC_CHECK_MEMBERS([struct stat.st_rdev])
+
+ AC_CHECK_TYPE([ino_t], [unsigned])
++AC_CHECK_TYPES([int64_t])
++AC_CHECK_TYPES([uint64_t])
+ TYPE_SOCKLEN_T
+
+ AC_CACHE_CHECK([for errno in errno.h],rsync_cv_errno, [
+--- rsync-2.6.2/rsync.h 2004-04-26 21:36:16.000000000 -0400
++++ rsync-2.6.2/rsync.h 2004-05-22 13:06:16.000000000 -0400
+@@ -298,7 +298,9 @@
+ #define STRUCT_STAT struct stat
+ #endif
+
+-#if HAVE_OFF64_T
++#if defined(HAVE_INT64_T)
++#define int64 int64_t
++#elif HAVE_OFF64_T
+ #define int64 off64_t
+ #elif (SIZEOF_LONG == 8)
+ #define int64 long
+@@ -312,7 +314,9 @@
+ #define NO_INT64
+ #endif
+
+-#if (SIZEOF_LONG == 8)
++#if defined(HAVE_UINT64_T)
++#define uint64 uint64_t
++#elif (SIZEOF_LONG == 8)
+ #define uint64 unsigned long
+ #elif (SIZEOF_INT == 8)
+ #define uint64 unsigned int