summaryrefslogtreecommitdiff
path: root/lib/sqfs
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/sqfs
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/sqfs')
-rw-r--r--lib/sqfs/data_reader.c2
-rw-r--r--lib/sqfs/data_writer.c2
-rw-r--r--lib/sqfs/deserialize_fstree.c2
-rw-r--r--lib/sqfs/frag_reader.c2
-rw-r--r--lib/sqfs/id_table.c2
-rw-r--r--lib/sqfs/id_table_read.c2
-rw-r--r--lib/sqfs/id_table_write.c2
-rw-r--r--lib/sqfs/meta_reader.c2
-rw-r--r--lib/sqfs/meta_writer.c2
-rw-r--r--lib/sqfs/read_inode.c2
-rw-r--r--lib/sqfs/read_super.c2
-rw-r--r--lib/sqfs/readdir.c2
-rw-r--r--lib/sqfs/serialize_fstree.c2
-rw-r--r--lib/sqfs/super.c2
-rw-r--r--lib/sqfs/table.c2
-rw-r--r--lib/sqfs/tree_node_from_inode.c2
-rw-r--r--lib/sqfs/write_dir.c2
-rw-r--r--lib/sqfs/write_export_table.c2
-rw-r--r--lib/sqfs/write_inode.c2
-rw-r--r--lib/sqfs/write_xattr.c2
20 files changed, 40 insertions, 0 deletions
diff --git a/lib/sqfs/data_reader.c b/lib/sqfs/data_reader.c
index 7136425..4fbd97a 100644
--- a/lib/sqfs/data_reader.c
+++ b/lib/sqfs/data_reader.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include "data_reader.h"
#include "frag_reader.h"
#include "util.h"
diff --git a/lib/sqfs/data_writer.c b/lib/sqfs/data_writer.c
index 64e27fa..74701fd 100644
--- a/lib/sqfs/data_writer.c
+++ b/lib/sqfs/data_writer.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include "data_writer.h"
#include "highlevel.h"
#include "util.h"
diff --git a/lib/sqfs/deserialize_fstree.c b/lib/sqfs/deserialize_fstree.c
index bc1d6e4..98444ac 100644
--- a/lib/sqfs/deserialize_fstree.c
+++ b/lib/sqfs/deserialize_fstree.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include "meta_reader.h"
#include "highlevel.h"
diff --git a/lib/sqfs/frag_reader.c b/lib/sqfs/frag_reader.c
index b8991b3..87e4c35 100644
--- a/lib/sqfs/frag_reader.c
+++ b/lib/sqfs/frag_reader.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include "meta_reader.h"
#include "frag_reader.h"
#include "util.h"
diff --git a/lib/sqfs/id_table.c b/lib/sqfs/id_table.c
index cd31360..b4abd0c 100644
--- a/lib/sqfs/id_table.c
+++ b/lib/sqfs/id_table.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include "id_table.h"
#include <stdlib.h>
diff --git a/lib/sqfs/id_table_read.c b/lib/sqfs/id_table_read.c
index e13f3b1..7147f2e 100644
--- a/lib/sqfs/id_table_read.c
+++ b/lib/sqfs/id_table_read.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include "meta_reader.h"
#include "highlevel.h"
#include "util.h"
diff --git a/lib/sqfs/id_table_write.c b/lib/sqfs/id_table_write.c
index c11895d..c2ed353 100644
--- a/lib/sqfs/id_table_write.c
+++ b/lib/sqfs/id_table_write.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include "highlevel.h"
int id_table_write(id_table_t *tbl, int outfd, sqfs_super_t *super,
diff --git a/lib/sqfs/meta_reader.c b/lib/sqfs/meta_reader.c
index c85d063..96b59fd 100644
--- a/lib/sqfs/meta_reader.c
+++ b/lib/sqfs/meta_reader.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include "meta_reader.h"
#include "util.h"
diff --git a/lib/sqfs/meta_writer.c b/lib/sqfs/meta_writer.c
index d55af3d..7b7ee84 100644
--- a/lib/sqfs/meta_writer.c
+++ b/lib/sqfs/meta_writer.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include "meta_writer.h"
#include "squashfs.h"
#include "util.h"
diff --git a/lib/sqfs/read_inode.c b/lib/sqfs/read_inode.c
index 8230138..22eaa0b 100644
--- a/lib/sqfs/read_inode.c
+++ b/lib/sqfs/read_inode.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include "meta_reader.h"
#include <sys/stat.h>
diff --git a/lib/sqfs/read_super.c b/lib/sqfs/read_super.c
index 8c43fe0..1a84ff9 100644
--- a/lib/sqfs/read_super.c
+++ b/lib/sqfs/read_super.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include "squashfs.h"
#include "util.h"
diff --git a/lib/sqfs/readdir.c b/lib/sqfs/readdir.c
index 71beedc..d078719 100644
--- a/lib/sqfs/readdir.c
+++ b/lib/sqfs/readdir.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include "meta_reader.h"
#include <stdlib.h>
diff --git a/lib/sqfs/serialize_fstree.c b/lib/sqfs/serialize_fstree.c
index d786244..bd889a5 100644
--- a/lib/sqfs/serialize_fstree.c
+++ b/lib/sqfs/serialize_fstree.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include "meta_writer.h"
#include "highlevel.h"
#include "util.h"
diff --git a/lib/sqfs/super.c b/lib/sqfs/super.c
index 59eb366..d90e6ea 100644
--- a/lib/sqfs/super.c
+++ b/lib/sqfs/super.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include "squashfs.h"
#include "util.h"
diff --git a/lib/sqfs/table.c b/lib/sqfs/table.c
index 81e7691..fc90a3f 100644
--- a/lib/sqfs/table.c
+++ b/lib/sqfs/table.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include "meta_writer.h"
#include "highlevel.h"
#include "util.h"
diff --git a/lib/sqfs/tree_node_from_inode.c b/lib/sqfs/tree_node_from_inode.c
index 1ee85e5..f35c046 100644
--- a/lib/sqfs/tree_node_from_inode.c
+++ b/lib/sqfs/tree_node_from_inode.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include "highlevel.h"
#include <stdlib.h>
diff --git a/lib/sqfs/write_dir.c b/lib/sqfs/write_dir.c
index 909e0bb..8015f31 100644
--- a/lib/sqfs/write_dir.c
+++ b/lib/sqfs/write_dir.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include "meta_writer.h"
#include "util.h"
diff --git a/lib/sqfs/write_export_table.c b/lib/sqfs/write_export_table.c
index 2815cc2..a0d81eb 100644
--- a/lib/sqfs/write_export_table.c
+++ b/lib/sqfs/write_export_table.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include "highlevel.h"
#include <stdlib.h>
diff --git a/lib/sqfs/write_inode.c b/lib/sqfs/write_inode.c
index 6e11277..7cef7a7 100644
--- a/lib/sqfs/write_inode.c
+++ b/lib/sqfs/write_inode.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include "meta_writer.h"
#include "util.h"
diff --git a/lib/sqfs/write_xattr.c b/lib/sqfs/write_xattr.c
index 33b0521..4cc3eea 100644
--- a/lib/sqfs/write_xattr.c
+++ b/lib/sqfs/write_xattr.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include "meta_writer.h"
#include "highlevel.h"
#include "util.h"