From 05a30292f9d2be63af3b4c27d5ae89801da602a2 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Tue, 23 Jul 2019 13:48:29 -0700 Subject: Enable largefile support Requires that config.h be included before other headers, since the macro _FILE_OFFSET_BITS changes the definitions of things like 'struct stat'. I chose to simply include it at the top of every C file and at immediately after the double-inclusion guards of every header. Signed-off-by: Matt Turner Signed-off-by: David Oberhollenzer --- tar/sqfs2tar.c | 2 ++ tar/tar2sqfs.c | 2 ++ 2 files changed, 4 insertions(+) (limited to 'tar') diff --git a/tar/sqfs2tar.c b/tar/sqfs2tar.c index 15c0363..32d155e 100644 --- a/tar/sqfs2tar.c +++ b/tar/sqfs2tar.c @@ -1,4 +1,6 @@ /* SPDX-License-Identifier: GPL-3.0-or-later */ +#include "config.h" + #include "meta_reader.h" #include "data_reader.h" #include "highlevel.h" diff --git a/tar/tar2sqfs.c b/tar/tar2sqfs.c index 2493c3b..03ae811 100644 --- a/tar/tar2sqfs.c +++ b/tar/tar2sqfs.c @@ -1,4 +1,6 @@ /* SPDX-License-Identifier: GPL-3.0-or-later */ +#include "config.h" + #include "data_writer.h" #include "highlevel.h" #include "squashfs.h" -- cgit v1.2.3