diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gzip.c | 1 | ||||
-rw-r--r-- | lib/zlib/zutil.c | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/lib/gzip.c b/lib/gzip.c index cd8e9fea43..2c49e4e9ff 100644 --- a/lib/gzip.c +++ b/lib/gzip.c @@ -10,6 +10,7 @@ #include <command.h> #include <image.h> #include <malloc.h> +#include <memalign.h> #include <u-boot/zlib.h> #include "zlib/zutil.h" diff --git a/lib/zlib/zutil.c b/lib/zlib/zutil.c index 173a81d1ea..227343e48d 100644 --- a/lib/zlib/zutil.c +++ b/lib/zlib/zutil.c @@ -43,7 +43,9 @@ void z_error (m) */ #ifndef MY_ZCALLOC /* Any system without a special alloc function */ -#ifndef __UBOOT__ +#ifdef __UBOOT__ +#include <malloc.h> +#else #ifndef STDC extern voidp malloc OF((uInt size)); extern voidp calloc OF((uInt items, uInt size)); |