From 45b8c14fd1fc805167b997b08371d5fe7efe62d4 Mon Sep 17 00:00:00 2001 From: Pablo Lezaeta Reyes Date: Wed, 27 Sep 2017 00:18:10 -0300 Subject: [PATCH] Add support for files larger than 2 GB, like any dvd image Signed-off-by: Pablo Lezaeta Reyes --- libhfs/os/unix.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libhfs/os/unix.c b/libhfs/os/unix.c index 736243d..474f807 100644 --- a/libhfs/os/unix.c +++ b/libhfs/os/unix.c @@ -19,6 +19,11 @@ * $Id: unix.c,v 1.8 1998/11/02 22:09:13 rob Exp $ */ +#ifdef __linux__ +#define _FILE_OFFSET_BITS 64 +#define _LARGE_FILES +#endif + # ifdef HAVE_CONFIG_H # include "config.h" # endif