summaryrefslogtreecommitdiff
path: root/mkfs/options.c
diff options
context:
space:
mode:
Diffstat (limited to 'mkfs/options.c')
-rw-r--r--mkfs/options.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mkfs/options.c b/mkfs/options.c
index 83f1bae..31b7731 100644
--- a/mkfs/options.c
+++ b/mkfs/options.c
@@ -168,6 +168,11 @@ void process_command_line(options_t *opt, int argc, char **argv)
if (!sqfs_compressor_exists(opt->cfg.comp_id))
have_compressor = false;
+#ifdef WITH_LZO
+ if (opt->cfg.comp_id == SQFS_COMP_LZO)
+ have_compressor = true;
+#endif
+
if (!have_compressor) {
fprintf(stderr, "Unsupported compressor '%s'\n",
optarg);