From a34feb1b97eeddad92bc8a7aab3be391247ff685 Mon Sep 17 00:00:00 2001 From: kientzle Date: Sat, 7 Aug 2004 03:24:49 +0000 Subject: Add "make distfile" capabilities to bsdtar, including informational COPYING file and some conditional compilation cleanups. --- usr.bin/tar/write.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'usr.bin/tar/write.c') diff --git a/usr.bin/tar/write.c b/usr.bin/tar/write.c index 6495e3d..0129762 100644 --- a/usr.bin/tar/write.c +++ b/usr.bin/tar/write.c @@ -170,12 +170,16 @@ tar_mode_c(struct bsdtar *bsdtar) switch (bsdtar->create_compression) { case 0: break; +#ifdef HAVE_LIBBZ2 case 'j': case 'y': archive_write_set_compression_bzip2(a); break; +#endif +#ifdef HAVE_LIBZ case 'z': archive_write_set_compression_gzip(a); break; +#endif default: bsdtar_errc(bsdtar, 1, 0, "Unrecognized compression option -%c", -- cgit v1.1