summaryrefslogtreecommitdiff
path: root/include
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 /include
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 'include')
-rw-r--r--include/compress.h2
-rw-r--r--include/data_reader.h2
-rw-r--r--include/data_writer.h2
-rw-r--r--include/frag_reader.h2
-rw-r--r--include/fstree.h2
-rw-r--r--include/highlevel.h2
-rw-r--r--include/id_table.h2
-rw-r--r--include/meta_reader.h2
-rw-r--r--include/meta_writer.h2
-rw-r--r--include/squashfs.h2
-rw-r--r--include/tar.h2
-rw-r--r--include/util.h2
12 files changed, 24 insertions, 0 deletions
diff --git a/include/compress.h b/include/compress.h
index 7937646..33488ad 100644
--- a/include/compress.h
+++ b/include/compress.h
@@ -2,6 +2,8 @@
#ifndef COMPRESS_H
#define COMPRESS_H
+#include "config.h"
+
#include <sys/types.h>
#include <stdbool.h>
#include <stddef.h>
diff --git a/include/data_reader.h b/include/data_reader.h
index a4964ee..e37584e 100644
--- a/include/data_reader.h
+++ b/include/data_reader.h
@@ -2,6 +2,8 @@
#ifndef DATA_READER_H
#define DATA_READER_H
+#include "config.h"
+
#include "frag_reader.h"
#include "squashfs.h"
#include "compress.h"
diff --git a/include/data_writer.h b/include/data_writer.h
index a52b37f..7107868 100644
--- a/include/data_writer.h
+++ b/include/data_writer.h
@@ -2,6 +2,8 @@
#ifndef DATA_WRITER_H
#define DATA_WRITER_H
+#include "config.h"
+
#include "squashfs.h"
#include "compress.h"
#include "fstree.h"
diff --git a/include/frag_reader.h b/include/frag_reader.h
index cf16153..1f4f271 100644
--- a/include/frag_reader.h
+++ b/include/frag_reader.h
@@ -2,6 +2,8 @@
#ifndef FRAG_READER_H
#define FRAG_READER_H
+#include "config.h"
+
#include "squashfs.h"
#include "compress.h"
diff --git a/include/fstree.h b/include/fstree.h
index 1b25363..2ba2b80 100644
--- a/include/fstree.h
+++ b/include/fstree.h
@@ -2,6 +2,8 @@
#ifndef FSTREE_H
#define FSTREE_H
+#include "config.h"
+
#include <sys/types.h>
#include <sys/stat.h>
#include <stdbool.h>
diff --git a/include/highlevel.h b/include/highlevel.h
index 12884a0..23f5b68 100644
--- a/include/highlevel.h
+++ b/include/highlevel.h
@@ -2,6 +2,8 @@
#ifndef HIGHLEVEL_H
#define HIGHLEVEL_H
+#include "config.h"
+
#include "squashfs.h"
#include "compress.h"
#include "id_table.h"
diff --git a/include/id_table.h b/include/id_table.h
index 911c829..7aef468 100644
--- a/include/id_table.h
+++ b/include/id_table.h
@@ -2,6 +2,8 @@
#ifndef ID_TABLE_H
#define ID_TABLE_H
+#include "config.h"
+
#include <stdint.h>
#include <stddef.h>
diff --git a/include/meta_reader.h b/include/meta_reader.h
index 16003f6..d0c9670 100644
--- a/include/meta_reader.h
+++ b/include/meta_reader.h
@@ -2,6 +2,8 @@
#ifndef META_READER_H
#define META_READER_H
+#include "config.h"
+
#include "compress.h"
#include "squashfs.h"
diff --git a/include/meta_writer.h b/include/meta_writer.h
index 09d7456..0d7dfdf 100644
--- a/include/meta_writer.h
+++ b/include/meta_writer.h
@@ -2,6 +2,8 @@
#ifndef META_WRITER_H
#define META_WRITER_H
+#include "config.h"
+
#include "compress.h"
#include "squashfs.h"
#include "id_table.h"
diff --git a/include/squashfs.h b/include/squashfs.h
index 545756c..bb5b855 100644
--- a/include/squashfs.h
+++ b/include/squashfs.h
@@ -2,6 +2,8 @@
#ifndef SQUASHFS_H
#define SQUASHFS_H
+#include "config.h"
+
#include <stdbool.h>
#include <stdint.h>
#include <stddef.h>
diff --git a/include/tar.h b/include/tar.h
index 424be80..5ac0763 100644
--- a/include/tar.h
+++ b/include/tar.h
@@ -2,6 +2,8 @@
#ifndef TAR_H
#define TAR_H
+#include "config.h"
+
#include <sys/stat.h>
#include <stdbool.h>
#include <stdint.h>
diff --git a/include/util.h b/include/util.h
index 1503fb8..8b79c30 100644
--- a/include/util.h
+++ b/include/util.h
@@ -2,6 +2,8 @@
#ifndef UTIL_H
#define UTIL_H
+#include "config.h"
+
#include <sys/types.h>
#include <stdint.h>