aboutsummaryrefslogtreecommitdiff
path: root/lib/fstree
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/fstree
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/fstree')
-rw-r--r--lib/fstree/add_by_path.c2
-rw-r--r--lib/fstree/fstree.c2
-rw-r--r--lib/fstree/fstree_from_dir.c2
-rw-r--r--lib/fstree/fstree_from_file.c2
-rw-r--r--lib/fstree/fstree_sort.c2
-rw-r--r--lib/fstree/gen_inode_table.c2
-rw-r--r--lib/fstree/get_path.c2
-rw-r--r--lib/fstree/mknode.c2
-rw-r--r--lib/fstree/node_from_path.c2
-rw-r--r--lib/fstree/node_stat.c2
-rw-r--r--lib/fstree/selinux.c2
-rw-r--r--lib/fstree/xattr.c2
12 files changed, 24 insertions, 0 deletions
diff --git a/lib/fstree/add_by_path.c b/lib/fstree/add_by_path.c
index 7e0a4ce..8983722 100644
--- a/lib/fstree/add_by_path.c
+++ b/lib/fstree/add_by_path.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include "fstree.h"
#include <string.h>
diff --git a/lib/fstree/fstree.c b/lib/fstree/fstree.c
index 29dd66b..11a1dd1 100644
--- a/lib/fstree/fstree.c
+++ b/lib/fstree/fstree.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include "fstree.h"
#include <string.h>
diff --git a/lib/fstree/fstree_from_dir.c b/lib/fstree/fstree_from_dir.c
index ad75006..2343fef 100644
--- a/lib/fstree/fstree_from_dir.c
+++ b/lib/fstree/fstree_from_dir.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include "fstree.h"
#include "util.h"
diff --git a/lib/fstree/fstree_from_file.c b/lib/fstree/fstree_from_file.c
index 91a922b..74d79ae 100644
--- a/lib/fstree/fstree_from_file.c
+++ b/lib/fstree/fstree_from_file.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include "fstree.h"
#include "util.h"
diff --git a/lib/fstree/fstree_sort.c b/lib/fstree/fstree_sort.c
index cd01235..a38e2a6 100644
--- a/lib/fstree/fstree_sort.c
+++ b/lib/fstree/fstree_sort.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include "fstree.h"
#include <string.h>
diff --git a/lib/fstree/gen_inode_table.c b/lib/fstree/gen_inode_table.c
index 2782c6d..15ef577 100644
--- a/lib/fstree/gen_inode_table.c
+++ b/lib/fstree/gen_inode_table.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include "fstree.h"
#include <stdlib.h>
diff --git a/lib/fstree/get_path.c b/lib/fstree/get_path.c
index 4b6f61e..e11af3d 100644
--- a/lib/fstree/get_path.c
+++ b/lib/fstree/get_path.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include "fstree.h"
#include <string.h>
diff --git a/lib/fstree/mknode.c b/lib/fstree/mknode.c
index 7d09fbd..ea0d0aa 100644
--- a/lib/fstree/mknode.c
+++ b/lib/fstree/mknode.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include "fstree.h"
#include <string.h>
diff --git a/lib/fstree/node_from_path.c b/lib/fstree/node_from_path.c
index e617059..122e106 100644
--- a/lib/fstree/node_from_path.c
+++ b/lib/fstree/node_from_path.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include "fstree.h"
#include <string.h>
diff --git a/lib/fstree/node_stat.c b/lib/fstree/node_stat.c
index a28cae8..4c3afe6 100644
--- a/lib/fstree/node_stat.c
+++ b/lib/fstree/node_stat.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include "fstree.h"
#include <string.h>
diff --git a/lib/fstree/selinux.c b/lib/fstree/selinux.c
index ceaac06..23ce828 100644
--- a/lib/fstree/selinux.c
+++ b/lib/fstree/selinux.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include "fstree.h"
#include <selinux/selinux.h>
diff --git a/lib/fstree/xattr.c b/lib/fstree/xattr.c
index 2ce39f4..35517de 100644
--- a/lib/fstree/xattr.c
+++ b/lib/fstree/xattr.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include "fstree.h"
#include <stdlib.h>