summaryrefslogtreecommitdiff
path: root/rsync/rsync-2.6.2/fixedwidthtypes.patch
blob: 9f7d3c804d449717bd1cd34cef3b6cdecd249e72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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