summaryrefslogtreecommitdiff
path: root/lib/util
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/util
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/util')
-rw-r--r--lib/util/canonicalize_name.c2
-rw-r--r--lib/util/dirstack.c2
-rw-r--r--lib/util/mkdir_p.c2
-rw-r--r--lib/util/padd_file.c2
-rw-r--r--lib/util/print_version.c1
-rw-r--r--lib/util/read_data.c2
-rw-r--r--lib/util/str_table.c2
-rw-r--r--lib/util/write_data.c2
8 files changed, 15 insertions, 0 deletions
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 <sys/types.h>
#include <sys/stat.h>
#include <string.h>
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 <sys/types.h>
#include <sys/stat.h>
#include <string.h>
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 <stdlib.h>
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 <stdio.h>
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 <unistd.h>
#include <errno.h>
#include <stdio.h>
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 <stdint.h>
#include <stdlib.h>
#include <string.h>
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 <unistd.h>
#include <errno.h>
#include <stdio.h>