summary refs log tree commit diff stats
path: root/xchat-wdk.patch
diff options
context:
space:
mode:
authorberkeviktor@aol.com <berkeviktor@aol.com>2010-10-09 05:18:25 +0200
committerberkeviktor@aol.com <berkeviktor@aol.com>2010-10-09 05:18:25 +0200
commitaab6eb03fcb2157ce771e9cbadc0044c518ca11e (patch)
tree388fd49ecf6e75b35f350d5093ade6895bd1142c /xchat-wdk.patch
parent55bc4b8ea6310b8e9d599e96bbb71765eb2d2501 (diff)
fix sending of files bigger than 2GB
Diffstat (limited to 'xchat-wdk.patch')
-rw-r--r--xchat-wdk.patch12
1 files 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 <time.h>
  #include <errno.h>
@@ -284,7 +284,15 @@ diff -ruN --strip-trailing-cr xchat-wdk.orig/src/common/dcc.c xchat-wdk/src/comm
  #include <fcntl.h>
  
  #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 */