fix sending of files bigger than 2GB

This commit is contained in:
berkeviktor@aol.com 2010-10-09 05:18:25 +02:00
parent 55bc4b8ea6
commit aab6eb03fc
1 changed files with 10 additions and 2 deletions

View File

@ -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 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.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 @@ @@ -31,7 +31,6 @@
#include <time.h> #include <time.h>
#include <errno.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> #include <fcntl.h>
#define WANTSOCKET #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; return TRUE;
/* now handle case-insensitive Filesystems: HFS+, FAT */ /* now handle case-insensitive Filesystems: HFS+, FAT */