summaryrefslogtreecommitdiffstats
path: root/lib/libarchive/test/test.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libarchive/test/test.h')
-rw-r--r--lib/libarchive/test/test.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libarchive/test/test.h b/lib/libarchive/test/test.h
index 7849215..685a8eb 100644
--- a/lib/libarchive/test/test.h
+++ b/lib/libarchive/test/test.h
@@ -32,6 +32,8 @@
* simplify the very repetitive test-*.c test programs.
*/
+#define _FILE_OFFSET_BITS 64
+
#include <archive.h>
#include <archive_entry.h>
#include <fcntl.h>
@@ -54,6 +56,12 @@
#error Oops: No config.h and no pre-built configuration in test.h.
#endif
+/* No non-FreeBSD platform will have __FBSDID, so just define it here. */
+#ifdef __FreeBSD__
+#include <sys/cdefs.h> /* For __FBSDID */
+#else
+#define __FBSDID(a) /* null */
+#endif
/*
* "list.h" is simply created by "grep DEFINE_TEST"; it has
OpenPOWER on IntegriCloud