aboutsummaryrefslogtreecommitdiff
path: root/lib/comp
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/comp
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/comp')
-rw-r--r--lib/comp/compressor.c2
-rw-r--r--lib/comp/gzip.c2
-rw-r--r--lib/comp/internal.h2
-rw-r--r--lib/comp/lz4.c2
-rw-r--r--lib/comp/lzo.c2
-rw-r--r--lib/comp/xz.c2
-rw-r--r--lib/comp/zstd.c2
7 files changed, 14 insertions, 0 deletions
diff --git a/lib/comp/compressor.c b/lib/comp/compressor.c
index b92462e..ce88bdd 100644
--- a/lib/comp/compressor.c
+++ b/lib/comp/compressor.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
diff --git a/lib/comp/gzip.c b/lib/comp/gzip.c
index 379a231..f974341 100644
--- a/lib/comp/gzip.c
+++ b/lib/comp/gzip.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
diff --git a/lib/comp/internal.h b/lib/comp/internal.h
index 0185f4d..f5bf956 100644
--- a/lib/comp/internal.h
+++ b/lib/comp/internal.h
@@ -2,6 +2,8 @@
#ifndef INTERNAL_H
#define INTERNAL_H
+#include "config.h"
+
#include "compress.h"
int generic_write_options(int fd, const void *data, size_t size);
diff --git a/lib/comp/lz4.c b/lib/comp/lz4.c
index e0bba9c..2dafea3 100644
--- a/lib/comp/lz4.c
+++ b/lib/comp/lz4.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
diff --git a/lib/comp/lzo.c b/lib/comp/lzo.c
index 09d05ea..5443d7d 100644
--- a/lib/comp/lzo.c
+++ b/lib/comp/lzo.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
diff --git a/lib/comp/xz.c b/lib/comp/xz.c
index b0a07ab..330441c 100644
--- a/lib/comp/xz.c
+++ b/lib/comp/xz.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
diff --git a/lib/comp/zstd.c b/lib/comp/zstd.c
index 2868cbf..bc94b2d 100644
--- a/lib/comp/zstd.c
+++ b/lib/comp/zstd.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>