summaryrefslogtreecommitdiffstats
path: root/lib/uncompress.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/uncompress.c')
-rw-r--r--lib/uncompress.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/uncompress.c b/lib/uncompress.c
index e0a69df9f9..a4225aaeb4 100644
--- a/lib/uncompress.c
+++ b/lib/uncompress.c
@@ -21,6 +21,7 @@
#include <bunzip2.h>
#include <gunzip.h>
#include <lzo.h>
+#include <linux/decompress/unlz4.h>
#include <errno.h>
#include <filetype.h>
#include <malloc.h>
@@ -112,6 +113,11 @@ int uncompress(unsigned char *inbuf, int len,
compfn = decompress_unlzo;
break;
#endif
+#ifdef CONFIG_LZ4_DECOMPRESS
+ case filetype_lz4_compressed:
+ compfn = decompress_unlz4;
+ break;
+#endif
default:
err = asprintf("cannot handle filetype %s", file_type_to_string(ft));
error_fn(err);