diff options
author | kientzle <kientzle@FreeBSD.org> | 2007-03-11 10:29:52 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2007-03-11 10:29:52 +0000 |
commit | c533ace5debb7bd4b941d9cb5ab620dc140cf83f (patch) | |
tree | 2deb823f3313d605e925a0e66c615bbb45f0f5fd /lib/libarchive/test/test.h | |
parent | 34561352cbc954916132a5235b0cfbca17080003 (diff) | |
download | FreeBSD-src-c533ace5debb7bd4b941d9cb5ab620dc140cf83f.zip FreeBSD-src-c533ace5debb7bd4b941d9cb5ab620dc140cf83f.tar.gz |
Libarchive 2.0.23:
* The ACL formatter was mis-formatting entries which had a
user/group ID but no name. Make the parser tolerant of
these, so that old archives can be correctly restored;
fix the formatter to generate correct entries.
* Fix overwrite detection by introducing a new "FAILED" return
code that indicates the current entry cannot be continued
but the archive as a whole is still sound.
* Header cleanup: Remove some unused headers, add some that
are required with new Linux systems.
Diffstat (limited to 'lib/libarchive/test/test.h')
-rw-r--r-- | lib/libarchive/test/test.h | 8 |
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 |