From aab6eb03fcb2157ce771e9cbadc0044c518ca11e Mon Sep 17 00:00:00 2001 From: "berkeviktor@aol.com" Date: Sat, 9 Oct 2010 05:18:25 +0200 Subject: [PATCH] fix sending of files bigger than 2GB --- xchat-wdk.patch | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/xchat-wdk.patch b/xchat-wdk.patch index 60789836..7898136a 100644 --- a/xchat-wdk.patch +++ b/xchat-wdk.patch @@ -275,7 +275,7 @@ diff -ruN --strip-trailing-cr xchat-wdk.orig/src/common/ctcp.c xchat-wdk/src/com } diff -ruN --strip-trailing-cr xchat-wdk.orig/src/common/dcc.c xchat-wdk/src/common/dcc.c --- xchat-wdk.orig/src/common/dcc.c 2010-05-30 04:28:04 +0200 -+++ xchat-wdk/src/common/dcc.c 2010-10-08 04:16:18 +0200 ++++ xchat-wdk/src/common/dcc.c 2010-10-09 05:17:54 +0200 @@ -31,7 +31,6 @@ #include #include @@ -284,7 +284,15 @@ diff -ruN --strip-trailing-cr xchat-wdk.orig/src/common/dcc.c xchat-wdk/src/comm #include #define WANTSOCKET -@@ -1983,9 +1982,7 @@ +@@ -57,6 +56,7 @@ + + #ifdef USE_DCC64 + #define BIG_STR_TO_INT(x) strtoull(x,NULL,10) ++#define stat _stat64 + #else + #define BIG_STR_TO_INT(x) strtoul(x,NULL,10) + #endif +@@ -1983,9 +1983,7 @@ return TRUE; /* now handle case-insensitive Filesystems: HFS+, FAT */