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 --- lib/util/canonicalize_name.c | 2 ++ lib/util/dirstack.c | 2 ++ lib/util/mkdir_p.c | 2 ++ lib/util/padd_file.c | 2 ++ lib/util/print_version.c | 1 + lib/util/read_data.c | 2 ++ lib/util/str_table.c | 2 ++ lib/util/write_data.c | 2 ++ 8 files changed, 15 insertions(+) (limited to 'lib/util') diff --git a/lib/util/canonicalize_name.c b/lib/util/canonicalize_name.c index 57e4d66..f696432 100644 --- a/lib/util/canonicalize_name.c +++ b/lib/util/canonicalize_name.c @@ -1,4 +1,6 @@ /* SPDX-License-Identifier: GPL-3.0-or-later */ +#include "config.h" + #include "util.h" static void normalize_slashes(char *filename) diff --git a/lib/util/dirstack.c b/lib/util/dirstack.c index 7bfd1a2..6949749 100644 --- a/lib/util/dirstack.c +++ b/lib/util/dirstack.c @@ -1,4 +1,6 @@ /* SPDX-License-Identifier: GPL-3.0-or-later */ +#include "config.h" + #include #include #include diff --git a/lib/util/mkdir_p.c b/lib/util/mkdir_p.c index 7d1e052..867933b 100644 --- a/lib/util/mkdir_p.c +++ b/lib/util/mkdir_p.c @@ -1,4 +1,6 @@ /* SPDX-License-Identifier: GPL-3.0-or-later */ +#include "config.h" + #include #include #include diff --git a/lib/util/padd_file.c b/lib/util/padd_file.c index 2f1ea9a..0ac19a9 100644 --- a/lib/util/padd_file.c +++ b/lib/util/padd_file.c @@ -1,4 +1,6 @@ /* SPDX-License-Identifier: GPL-3.0-or-later */ +#include "config.h" + #include "util.h" #include diff --git a/lib/util/print_version.c b/lib/util/print_version.c index 7d1b91a..7b0965b 100644 --- a/lib/util/print_version.c +++ b/lib/util/print_version.c @@ -1,5 +1,6 @@ /* SPDX-License-Identifier: GPL-3.0-or-later */ #include "config.h" + #include "util.h" #include diff --git a/lib/util/read_data.c b/lib/util/read_data.c index 43f8da8..802baf4 100644 --- a/lib/util/read_data.c +++ b/lib/util/read_data.c @@ -1,4 +1,6 @@ /* SPDX-License-Identifier: GPL-3.0-or-later */ +#include "config.h" + #include #include #include diff --git a/lib/util/str_table.c b/lib/util/str_table.c index 72579ce..b6eb27c 100644 --- a/lib/util/str_table.c +++ b/lib/util/str_table.c @@ -1,4 +1,6 @@ /* SPDX-License-Identifier: GPL-3.0-or-later */ +#include "config.h" + #include #include #include diff --git a/lib/util/write_data.c b/lib/util/write_data.c index 82f3aca..4396138 100644 --- a/lib/util/write_data.c +++ b/lib/util/write_data.c @@ -1,4 +1,6 @@ /* SPDX-License-Identifier: GPL-3.0-or-later */ +#include "config.h" + #include #include #include -- cgit v1.2.3