mirror of https://github.com/hak5/openwrt-owl.git
ar71xx: add dummy rle_decode function if CONFIG_RLE_DECOMPRESS is not set
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 39079owl
parent
7038fd9c52
commit
d208d3fe1a
|
@ -22,13 +22,23 @@
|
||||||
lib-$(CONFIG_DECOMPRESS_BZIP2) += decompress_bunzip2.o
|
lib-$(CONFIG_DECOMPRESS_BZIP2) += decompress_bunzip2.o
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/include/linux/rle.h
|
+++ b/include/linux/rle.h
|
||||||
@@ -0,0 +1,8 @@
|
@@ -0,0 +1,18 @@
|
||||||
+#ifndef _RLE_H_
|
+#ifndef _RLE_H_
|
||||||
+#define _RLE_H_
|
+#define _RLE_H_
|
||||||
+
|
+
|
||||||
|
+#ifdef CONFIG_RLE_DECOMPRESS
|
||||||
+int rle_decode(const unsigned char *src, size_t srclen,
|
+int rle_decode(const unsigned char *src, size_t srclen,
|
||||||
+ unsigned char *dst, size_t dstlen,
|
+ unsigned char *dst, size_t dstlen,
|
||||||
+ size_t *src_done, size_t *dst_done);
|
+ 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_ */
|
+#endif /* _RLE_H_ */
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
|
|
Loading…
Reference in New Issue