diff options
Diffstat (limited to 'libarchive/test/test_open_fd.c')
-rw-r--r-- | libarchive/test/test_open_fd.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libarchive/test/test_open_fd.c b/libarchive/test/test_open_fd.c index 52b34bd..ff5fab1 100644 --- a/libarchive/test/test_open_fd.c +++ b/libarchive/test/test_open_fd.c @@ -28,6 +28,9 @@ __FBSDID("$FreeBSD: head/lib/libarchive/test/test_open_fd.c 201247 2009-12-30 05 #if defined(_WIN32) && !defined(__CYGWIN__) #define open _open #if !defined(__BORLANDC__) +#ifdef lseek +#undef lseek +#endif #define lseek _lseek #endif #define close _close @@ -52,7 +55,7 @@ DEFINE_TEST(test_open_fd) /* Write an archive through this fd. */ assert((a = archive_write_new()) != NULL); assertEqualIntA(a, ARCHIVE_OK, archive_write_set_format_ustar(a)); - assertEqualIntA(a, ARCHIVE_OK, archive_write_set_compression_none(a)); + assertEqualIntA(a, ARCHIVE_OK, archive_write_add_filter_none(a)); assertEqualIntA(a, ARCHIVE_OK, archive_write_open_fd(a, fd)); /* |