X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/d867229ba0fcc7f829047b7caaa2166685cadf6e..73233f0f1232c337ede5fae3f9f95d78457df7d0:/io.c diff --git a/io.c b/io.c index 95177c4e..4e43d33c 100644 --- a/io.c +++ b/io.c @@ -187,7 +187,7 @@ int64 read_longint(int f) if (ret != -1) return ret; -#ifndef HAVE_LONGLONG +#ifdef NO_INT64 fprintf(FERROR,"Integer overflow - attempted 64 bit offset\n"); exit_cleanup(1); #else @@ -238,7 +238,7 @@ static int last_sparse; int sparse_end(int f) { if (last_sparse) { - lseek(f,-1,SEEK_CUR); + do_lseek(f,-1,SEEK_CUR); return (write(f,&last_byte,1) == 1 ? 0 : -1); } last_sparse = 0; @@ -260,7 +260,7 @@ static int write_sparse(int f,char *buf,int len) last_sparse=1; if (l1 > 0) - lseek(f,l1,SEEK_CUR); + do_lseek(f,l1,SEEK_CUR); if (l1 == len) return len; @@ -271,7 +271,7 @@ static int write_sparse(int f,char *buf,int len) } if (l2 > 0) - lseek(f,l2,SEEK_CUR); + do_lseek(f,l2,SEEK_CUR); return len; }