summaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
authorDenys Vlasenko2017-07-04 16:23:36 +0200
committerDenys Vlasenko2017-07-04 16:23:36 +0200
commit034ceabe8221fb924277cd6b1e07303ecb93408f (patch)
treefc7555006247426b6487da522836e2a23f6f3ba1 /archival
parentd1f222c3b00839b289f5d04a69b3c704101d17b2 (diff)
downloadbusybox-034ceabe8221fb924277cd6b1e07303ecb93408f.zip
busybox-034ceabe8221fb924277cd6b1e07303ecb93408f.tar.gz
bzcat: compile bunzip2_main() if BZCAT.
Currently, BZCAT (and BUNZIP2) selects FEATURE_BZIP2_DECOMPRESS, thus, "#if ENABLE_FEATURE_BZIP2_DECOMPRESS" around bunzip2_main() is sufficient. But let's robustify it. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'archival')
-rw-r--r--archival/bbunzip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/archival/bbunzip.c b/archival/bbunzip.c
index f7a7ab3..b3b85b5 100644
--- a/archival/bbunzip.c
+++ b/archival/bbunzip.c
@@ -448,7 +448,7 @@ int gunzip_main(int argc UNUSED_PARAM, char **argv)
//applet:IF_BUNZIP2(APPLET(bunzip2, BB_DIR_USR_BIN, BB_SUID_DROP))
// APPLET_ODDNAME:name main location suid_type help
//applet:IF_BZCAT(APPLET_ODDNAME(bzcat, bunzip2, BB_DIR_USR_BIN, BB_SUID_DROP, bzcat))
-#if ENABLE_FEATURE_BZIP2_DECOMPRESS || ENABLE_BUNZIP2
+#if ENABLE_FEATURE_BZIP2_DECOMPRESS || ENABLE_BUNZIP2 || ENABLE_BZCAT
int bunzip2_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
int bunzip2_main(int argc UNUSED_PARAM, char **argv)
{