20 Mar 2006 13:48
[Fwd: bug 1110812 - 4Gigbug.patch does not work in Windows]
Sekar Vembu <sekar <at> vembu.com>
2006-03-20 12:48:56 GMT
2006-03-20 12:48:56 GMT
Hi,
Subsequent to my original email, I think we have fixed the large file
problem in Windows too. We have made minor modifications to three files.
We have tested this and it seems to work for us. I am attaching the
three files with this email.
1. buf.c
2. librsync.h
3.PcBuild\librsync-config.h
The following are the cvs-diff for those three files. Hope some expert
will review this and check this in to the librsync CVS. If there is a
problem with these changes please let me know.
cvs diff buf.c
Index: buf.c
===================================================================
RCS file: /cvsroot/librsync/librsync/buf.c,v
retrieving revision 1.22
diff -r1.22 buf.c
209c209,215
< if (fseek(f, pos, SEEK_SET)) {
---
>
>
> #if WIN32
> if (_fseeki64(f, (__int64)pos, SEEK_SET) < 0 ) {
> #else
> if (fseek(f, pos, SEEK_SET)) {
> #endif
(Continue reading)
RSS Feed