summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2013-07-15 12:20:53 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-07-22 09:15:32 +0200
commit618d669117e9e59a11b389a1c06610e1a3c3aa70 (patch)
treeefc3f9d2307fc91a3a39b9a7d76fd1536ab40240 /lib
parentcdc837f4d90fbafd0d55634ea3acfda12120e1cd (diff)
downloadbarebox-618d669117e9e59a11b389a1c06610e1a3c3aa70.tar.gz
barebox-618d669117e9e59a11b389a1c06610e1a3c3aa70.tar.xz
pbl: add lz4 support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/decompress_unlz4.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/decompress_unlz4.c b/lib/decompress_unlz4.c
index 894cc37ab5..0dfb08c7d7 100644
--- a/lib/decompress_unlz4.c
+++ b/lib/decompress_unlz4.c
@@ -23,6 +23,10 @@
#include <asm/unaligned.h>
+#ifndef STATIC
+#define STATIC
+#endif
+
/*
* Note: Uncompressed chunk size is used in the compressor side
* (userspace side for compression).
@@ -175,7 +179,7 @@ exit_0:
return ret;
}
-int decompress_unlz4(unsigned char *buf, int in_len,
+STATIC int decompress_unlz4(unsigned char *buf, int in_len,
int(*fill)(void*, unsigned int),
int(*flush)(void*, unsigned int),
unsigned char *output,