aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-12-16 07:37:31 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-12-16 07:37:31 +0000
commitff9157a3c2ecb6173ce58af7fe5cbb7b3147c5b4 (patch)
tree615af74b49afc73d38a09bbe666abaed9da96156
parenta4492a16356de2e41726f5b6cd9cb7774937ea07 (diff)
downloadupstream-ff9157a3c2ecb6173ce58af7fe5cbb7b3147c5b4.tar.gz
upstream-ff9157a3c2ecb6173ce58af7fe5cbb7b3147c5b4.tar.bz2
upstream-ff9157a3c2ecb6173ce58af7fe5cbb7b3147c5b4.zip
ar71xx: add dummy rle_decode function if CONFIG_RLE_DECOMPRESS is not set
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39079 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--target/linux/ar71xx/patches-3.10/310-lib-add-rle-decompression.patch12
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 5c43ae2576..ebf486ec9f 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