packages/hfsutils/0003-Add-support-for-files-larger-than-2GB.patch

25 lines
529 B
Diff

From: Matthias Klose <doko@debian.org>
Date: Sat, 23 Jan 2021 15:14:19 +0100
Subject: Add support for files larger than 2GB
---
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