summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAntony Pavlov <antonynpavlov@gmail.com>2013-02-05 02:36:35 +0400
committerSascha Hauer <s.hauer@pengutronix.de>2013-02-05 09:57:43 +0100
commit3e17c2e58f9c71f937e33f809451b62fe2b75635 (patch)
tree252d812a7be09a2c9283c75129142668c51fb872 /lib
parente43e1498f65fe03cfc6b2744247eeccf27b26876 (diff)
downloadbarebox-3e17c2e58f9c71f937e33f809451b62fe2b75635.tar.gz
barebox-3e17c2e58f9c71f937e33f809451b62fe2b75635.tar.xz
pbl: fix IMAGE_COMPRESSION_LZO-enabled build on MIPS
Here's the error message: LD arch/mips/pbl/zbarebox pbl/built-in-pbl.o: In function `decompress_unlzo': /home/antony/barebox.git.rebased.isp/pbl/decomp.c:35: undefined reference to `free' pbl/built-in-pbl.o: In function `pbl_barebox_uncompress': (.text.pbl_barebox_uncompress+0x6d0): relocation truncated to fit: R_MIPS_26 against `free' pbl/built-in-pbl.o: In function `pbl_barebox_uncompress': (.text.pbl_barebox_uncompress+0x6e0): undefined reference to `free' pbl/built-in-pbl.o: In function `pbl_barebox_uncompress': (.text.pbl_barebox_uncompress+0x6e0): relocation truncated to fit: R_MIPS_26 against `free' make[1]: *** [arch/mips/pbl/zbarebox] Error 1 make: *** [zbarebox.bin] Error 2 Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/decompress_unlzo.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/decompress_unlzo.c b/lib/decompress_unlzo.c
index 776719c27..1b2dc9d17 100644
--- a/lib/decompress_unlzo.c
+++ b/lib/decompress_unlzo.c
@@ -26,14 +26,16 @@
*/
#include <common.h>
-#include <malloc.h>
#include <linux/types.h>
#include <errno.h>
#include <fs.h>
#include <xfuncs.h>
#ifdef STATIC
+#include <linux/decompress/mm.h>
#include "lzo/lzo1x_decompress.c"
+#else
+#include <malloc.h>
#endif
#include <lzo.h>