summaryrefslogtreecommitdiff
path: root/lib/tar/read_header.c
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2019-07-23 13:48:29 -0700
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-07-24 09:16:16 +0200
commit05a30292f9d2be63af3b4c27d5ae89801da602a2 (patch)
treef9f596d38b05889dbcb83f9df5c9bcda7dbe48c5 /lib/tar/read_header.c
parentd6f15cb9b054ed76b5bee2e6924d4b0b2a5e52ae (diff)
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 <mattst88@gmail.com> Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/tar/read_header.c')
-rw-r--r--lib/tar/read_header.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/tar/read_header.c b/lib/tar/read_header.c
index 1769e0a..4843bb5 100644
--- a/lib/tar/read_header.c
+++ b/lib/tar/read_header.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include "internal.h"
static bool is_zero_block(const tar_header_t *hdr)