summaryrefslogtreecommitdiff
path: root/tests
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 /tests
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 'tests')
-rw-r--r--tests/add_by_path.c2
-rw-r--r--tests/canonicalize_name.c2
-rw-r--r--tests/fstree_from_file.c2
-rw-r--r--tests/fstree_init.c2
-rw-r--r--tests/fstree_sort.c2
-rw-r--r--tests/fstree_xattr.c2
-rw-r--r--tests/gen_inode_table.c2
-rw-r--r--tests/get_path.c2
-rw-r--r--tests/mknode_dir.c2
-rw-r--r--tests/mknode_reg.c2
-rw-r--r--tests/mknode_simple.c2
-rw-r--r--tests/mknode_slink.c2
-rw-r--r--tests/str_table.c2
-rw-r--r--tests/tar_gnu.c2
-rw-r--r--tests/tar_pax.c2
-rw-r--r--tests/tar_sparse_gnu.c2
-rw-r--r--tests/tar_sparse_gnu1.c2
-rw-r--r--tests/tar_sparse_gnu2.c2
-rw-r--r--tests/tar_ustar.c2
-rw-r--r--tests/tar_xattr_bsd.c2
-rw-r--r--tests/tar_xattr_schily.c2
21 files changed, 42 insertions, 0 deletions
diff --git a/tests/add_by_path.c b/tests/add_by_path.c
index 740e732..e9e2546 100644
--- a/tests/add_by_path.c
+++ b/tests/add_by_path.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/tests/canonicalize_name.c b/tests/canonicalize_name.c
index ad12752..08c6d84 100644
--- a/tests/canonicalize_name.c
+++ b/tests/canonicalize_name.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include "util.h"
#include <string.h>
diff --git a/tests/fstree_from_file.c b/tests/fstree_from_file.c
index f4fc345..86c1824 100644
--- a/tests/fstree_from_file.c
+++ b/tests/fstree_from_file.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include "fstree.h"
#include <sys/sysmacros.h>
diff --git a/tests/fstree_init.c b/tests/fstree_init.c
index ea89633..79033e0 100644
--- a/tests/fstree_init.c
+++ b/tests/fstree_init.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/tests/fstree_sort.c b/tests/fstree_sort.c
index 8faa514..28aa74e 100644
--- a/tests/fstree_sort.c
+++ b/tests/fstree_sort.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/tests/fstree_xattr.c b/tests/fstree_xattr.c
index 36b90ec..fabc9b4 100644
--- a/tests/fstree_xattr.c
+++ b/tests/fstree_xattr.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/tests/gen_inode_table.c b/tests/gen_inode_table.c
index d2c694c..f1e1f16 100644
--- a/tests/gen_inode_table.c
+++ b/tests/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/tests/get_path.c b/tests/get_path.c
index 5d2027a..5118876 100644
--- a/tests/get_path.c
+++ b/tests/get_path.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/tests/mknode_dir.c b/tests/mknode_dir.c
index 5efe7a8..a14f3fe 100644
--- a/tests/mknode_dir.c
+++ b/tests/mknode_dir.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/tests/mknode_reg.c b/tests/mknode_reg.c
index f614b2e..b6b1a0b 100644
--- a/tests/mknode_reg.c
+++ b/tests/mknode_reg.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/tests/mknode_simple.c b/tests/mknode_simple.c
index 24b0c5e..1cac860 100644
--- a/tests/mknode_simple.c
+++ b/tests/mknode_simple.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/tests/mknode_slink.c b/tests/mknode_slink.c
index 6dbccc8..d28f929 100644
--- a/tests/mknode_slink.c
+++ b/tests/mknode_slink.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/tests/str_table.c b/tests/str_table.c
index fad21b7..b9da577 100644
--- a/tests/str_table.c
+++ b/tests/str_table.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include <stdlib.h>
#include <assert.h>
#include <unistd.h>
diff --git a/tests/tar_gnu.c b/tests/tar_gnu.c
index 74e376b..3f57cee 100644
--- a/tests/tar_gnu.c
+++ b/tests/tar_gnu.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include "util.h"
#include "tar.h"
diff --git a/tests/tar_pax.c b/tests/tar_pax.c
index 800e9f1..f0f664b 100644
--- a/tests/tar_pax.c
+++ b/tests/tar_pax.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include "util.h"
#include "tar.h"
diff --git a/tests/tar_sparse_gnu.c b/tests/tar_sparse_gnu.c
index 4c3ee31..2aff2af 100644
--- a/tests/tar_sparse_gnu.c
+++ b/tests/tar_sparse_gnu.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include "util.h"
#include "tar.h"
diff --git a/tests/tar_sparse_gnu1.c b/tests/tar_sparse_gnu1.c
index fac23f1..b92427e 100644
--- a/tests/tar_sparse_gnu1.c
+++ b/tests/tar_sparse_gnu1.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include "util.h"
#include "tar.h"
diff --git a/tests/tar_sparse_gnu2.c b/tests/tar_sparse_gnu2.c
index edf1fb5..14c2b07 100644
--- a/tests/tar_sparse_gnu2.c
+++ b/tests/tar_sparse_gnu2.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include "util.h"
#include "tar.h"
diff --git a/tests/tar_ustar.c b/tests/tar_ustar.c
index 0395642..187128a 100644
--- a/tests/tar_ustar.c
+++ b/tests/tar_ustar.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include "util.h"
#include "tar.h"
diff --git a/tests/tar_xattr_bsd.c b/tests/tar_xattr_bsd.c
index e324b4c..9bb6d85 100644
--- a/tests/tar_xattr_bsd.c
+++ b/tests/tar_xattr_bsd.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include "util.h"
#include "tar.h"
diff --git a/tests/tar_xattr_schily.c b/tests/tar_xattr_schily.c
index 4dca88e..c8b85c8 100644
--- a/tests/tar_xattr_schily.c
+++ b/tests/tar_xattr_schily.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
+#include "config.h"
+
#include "util.h"
#include "tar.h"