From 95c9ac6ffa1ccf697404bb9b66cd4e9171634e73 Mon Sep 17 00:00:00 2001 From: Michael Ossmann Date: Wed, 25 Jan 2017 16:32:20 -0700 Subject: [PATCH] Support files larger than 2147483647 bytes on 32-bit platforms. Fixes issue #152. --- host/hackrf-tools/src/hackrf_sweep.c | 2 ++ host/hackrf-tools/src/hackrf_transfer.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/host/hackrf-tools/src/hackrf_sweep.c b/host/hackrf-tools/src/hackrf_sweep.c index a1460735..da700fa2 100644 --- a/host/hackrf-tools/src/hackrf_sweep.c +++ b/host/hackrf-tools/src/hackrf_sweep.c @@ -35,6 +35,8 @@ #include #include +#define _FILE_OFFSET_BITS 64 + #ifndef bool typedef int bool; #define true 1 diff --git a/host/hackrf-tools/src/hackrf_transfer.c b/host/hackrf-tools/src/hackrf_transfer.c index ed4bc6ad..f44a0e25 100644 --- a/host/hackrf-tools/src/hackrf_transfer.c +++ b/host/hackrf-tools/src/hackrf_transfer.c @@ -34,6 +34,8 @@ #include #include +#define _FILE_OFFSET_BITS 64 + #ifndef bool typedef int bool; #define true 1