diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gzip.c | 2 | ||||
-rw-r--r-- | lib/zlib/zutil.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/gzip.c b/lib/gzip.c index ff37d4f31be..cd8e9fea43d 100644 --- a/lib/gzip.c +++ b/lib/gzip.c @@ -25,7 +25,7 @@ static void *zalloc(void *x, unsigned items, unsigned size) size *= items; size = (size + ZALLOC_ALIGNMENT - 1) & ~(ZALLOC_ALIGNMENT - 1); - p = malloc (size); + p = malloc_cache_aligned(size); return (p); } diff --git a/lib/zlib/zutil.c b/lib/zlib/zutil.c index 14f6eb1e07d..173a81d1ea4 100644 --- a/lib/zlib/zutil.c +++ b/lib/zlib/zutil.c @@ -43,11 +43,13 @@ void z_error (m) */ #ifndef MY_ZCALLOC /* Any system without a special alloc function */ +#ifndef __UBOOT__ #ifndef STDC extern voidp malloc OF((uInt size)); extern voidp calloc OF((uInt items, uInt size)); extern void free OF((voidpf ptr)); #endif +#endif voidpf zcalloc(voidpf opaque, unsigned items, unsigned size) { |