diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2013-12-16 07:37:31 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2013-12-16 07:37:31 +0000 |
commit | d208d3fe1aed49b631835d3e0161b61b02ade6fe (patch) | |
tree | ea8da3f0ebe69ddb88bd604a2dbe9a34a9357ab2 /target/linux/ar71xx/patches-3.10 | |
parent | 7038fd9c520cc75bacd4972b548f4c5512663031 (diff) | |
download | mtk-20170518-d208d3fe1aed49b631835d3e0161b61b02ade6fe.zip mtk-20170518-d208d3fe1aed49b631835d3e0161b61b02ade6fe.tar.gz mtk-20170518-d208d3fe1aed49b631835d3e0161b61b02ade6fe.tar.bz2 |
ar71xx: add dummy rle_decode function if CONFIG_RLE_DECOMPRESS is not set
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 39079
Diffstat (limited to 'target/linux/ar71xx/patches-3.10')
-rw-r--r-- | target/linux/ar71xx/patches-3.10/310-lib-add-rle-decompression.patch | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/target/linux/ar71xx/patches-3.10/310-lib-add-rle-decompression.patch b/target/linux/ar71xx/patches-3.10/310-lib-add-rle-decompression.patch index 5c43ae2..ebf486e 100644 --- a/target/linux/ar71xx/patches-3.10/310-lib-add-rle-decompression.patch +++ b/target/linux/ar71xx/patches-3.10/310-lib-add-rle-decompression.patch @@ -22,13 +22,23 @@ lib-$(CONFIG_DECOMPRESS_BZIP2) += decompress_bunzip2.o --- /dev/null +++ b/include/linux/rle.h -@@ -0,0 +1,8 @@ +@@ -0,0 +1,18 @@ +#ifndef _RLE_H_ +#define _RLE_H_ + ++#ifdef CONFIG_RLE_DECOMPRESS +int rle_decode(const unsigned char *src, size_t srclen, + unsigned char *dst, size_t dstlen, + size_t *src_done, size_t *dst_done); ++#else ++static inline int ++rle_decode(const unsigned char *src, size_t srclen, ++ unsigned char *dst, size_t dstlen, ++ size_t *src_done, size_t *dst_done) ++{ ++ return -ENOTSUPP; ++} ++#endif /* CONFIG_RLE_DECOMPRESS */ + +#endif /* _RLE_H_ */ --- /dev/null |