X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=lib%2Fdecompress_unlzo.c;h=f4c158e3a022aa1af35a6937190d5e0bc90e31ce;hb=2d3862d26e67a59340ba1cf1748196c76c5787de;hp=b94a31bdd87d15f34a7f4902eb6170f800c01206;hpb=899552d6e84babd24611fd36ac7051068cb1eb2d;p=deliverable%2Flinux.git diff --git a/lib/decompress_unlzo.c b/lib/decompress_unlzo.c index b94a31bdd87d..f4c158e3a022 100644 --- a/lib/decompress_unlzo.c +++ b/lib/decompress_unlzo.c @@ -31,6 +31,7 @@ */ #ifdef STATIC +#define PREBOOT #include "lzo/lzo1x_decompress_safe.c" #else #include @@ -287,4 +288,14 @@ exit: return ret; } -#define decompress unlzo +#ifdef PREBOOT +STATIC int INIT __decompress(unsigned char *buf, long len, + long (*fill)(void*, unsigned long), + long (*flush)(void*, unsigned long), + unsigned char *out_buf, long olen, + long *pos, + void (*error)(char *x)) +{ + return unlzo(buf, len, fill, flush, out_buf, pos, error); +} +#endif