aboutsummaryrefslogtreecommitdiff
path: root/lib/libarchive/test
diff options
context:
space:
mode:
authorTim Kientzle <kientzle@FreeBSD.org>2007-03-11 10:29:52 +0000
committerTim Kientzle <kientzle@FreeBSD.org>2007-03-11 10:29:52 +0000
commit2304493774fd7ce8c8afaf9c3709ddcd766d566f (patch)
tree2deb823f3313d605e925a0e66c615bbb45f0f5fd /lib/libarchive/test
parentce475c411b6a01b08c9fdb88515fd8adb7aa4104 (diff)
Notes
Diffstat (limited to 'lib/libarchive/test')
-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 7849215a2efa..685a8eb162f4 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