From ed8f912be8ecacd9c213132f22a8043c94fd1352 Mon Sep 17 00:00:00 2001 From: ketmar Date: Wed, 11 Dec 2013 19:51:53 +0200 Subject: [PATCH] tests: using 64-bit offsets --- Jamrules | 2 ++ src/main.c | 2 +- src/main_unp.c | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Jamrules b/Jamrules index 95b9308..4787b25 100644 --- a/Jamrules +++ b/Jamrules @@ -1,6 +1,8 @@ set-profile ; set-target-locations ; +DEFINES += _FILE_OFFSET_BITS=64 ; + softinclude $(TOP)/Jamrules.local ; softinclude $(TOP)/Jamrules.configure ; diff --git a/src/main.c b/src/main.c index 72011b9..6ab0960 100644 --- a/src/main.c +++ b/src/main.c @@ -38,7 +38,7 @@ static int fdo = -1; #define INBUF_SIZE (1024*1024) static uint8_t rdbuf[INBUF_SIZE]; static int rdpos = 0, rdmax = 0; -static int rdcur = 0, rdtotal = 0; +static uint64_t rdcur = 0, rdtotal = 0; #define OUTBUF_SIZE (1024*1024) static uint8_t wrbuf[OUTBUF_SIZE]; diff --git a/src/main_unp.c b/src/main_unp.c index 77f6aab..d46c8f5 100644 --- a/src/main_unp.c +++ b/src/main_unp.c @@ -33,7 +33,7 @@ static int fdi = -1; static int fdo = -1; -static int rdcur = 0, rdtotal = 0; +static uint64_t rdcur = 0, rdtotal = 0; #ifdef NDEBUG # define OUTBUF_SIZE (1024*1024) -- 2.11.4.GIT