diff options
author | Florian Fainelli <florian@openwrt.org> | 2010-10-23 18:56:14 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2010-10-23 18:56:14 +0000 |
commit | 115dc292cb329a77cd72e4d0a7ed5d8479c62ae6 (patch) | |
tree | 6757f54ead3edd1c7e71d8a448971511c847c4dd /target/linux | |
parent | 1ecedb1ec687a46fc5c7297aba4d9a9da9c73c05 (diff) | |
download | upstream-115dc292cb329a77cd72e4d0a7ed5d8479c62ae6.tar.gz upstream-115dc292cb329a77cd72e4d0a7ed5d8479c62ae6.tar.bz2 upstream-115dc292cb329a77cd72e4d0a7ed5d8479c62ae6.zip |
fix lzo decompressor build failure on 2.6.35
The patch fixes the build failure in Linux 2.6.35.7.
Other versions may have the same issue, but I haven't test it.
Signed-off-by: Ramax Lo <ramaxlo@gmail.com>
SVN-Revision: 23593
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/generic/patches-2.6.35/009-decompress_unlzo_fix.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/target/linux/generic/patches-2.6.35/009-decompress_unlzo_fix.patch b/target/linux/generic/patches-2.6.35/009-decompress_unlzo_fix.patch new file mode 100644 index 0000000000..482923dfd2 --- /dev/null +++ b/target/linux/generic/patches-2.6.35/009-decompress_unlzo_fix.patch @@ -0,0 +1,27 @@ +Index: linux-2.6.35.7/include/linux/decompress/unlzo_mm.h +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ linux-2.6.35.7/include/linux/decompress/unlzo_mm.h 2010-10-23 09:32:04.000000000 +0800 +@@ -0,0 +1,10 @@ ++#ifndef UNLZO_MM_H ++#define UNLZO_MM_H ++ ++#ifdef STATIC ++#define INIT ++#else ++#define INIT __init ++#endif ++ ++#endif +Index: linux-2.6.35.7/lib/decompress_unlzo.c +=================================================================== +--- linux-2.6.35.7.orig/lib/decompress_unlzo.c 2010-10-23 09:29:09.000000000 +0800 ++++ linux-2.6.35.7/lib/decompress_unlzo.c 2010-10-23 09:32:53.000000000 +0800 +@@ -39,6 +39,7 @@ + + #include <linux/types.h> + #include <linux/lzo.h> ++#include <linux/decompress/unlzo_mm.h> + #include <linux/decompress/mm.h> + + #include <linux/compiler.h> |