From e80657059aa21aaf24beebb99abc842b8ee0ca80 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Thu, 4 Apr 2013 00:25:06 +0200 Subject: add UCLIBC_SUSV2_LEGACY to hide valloc valloc was marked as LEGACY in SUSv2, removed from SUSv3 and later. TODO: Remove this (point people to memalign and it's successors?). Signed-off-by: Bernhard Reutner-Fischer --- include/malloc.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/malloc.h b/include/malloc.h index 20d799ca5..3209fb070 100644 --- a/include/malloc.h +++ b/include/malloc.h @@ -125,8 +125,10 @@ extern void free __MALLOC_P ((__malloc_ptr_t __ptr)); extern __malloc_ptr_t memalign __MALLOC_P ((size_t __alignment, size_t __size)); libc_hidden_proto(memalign) +#ifdef __UCLIBC_SUSV2_LEGACY__ /* Allocate SIZE bytes on a page boundary. */ extern __malloc_ptr_t valloc __MALLOC_P ((size_t __size)) __attribute_malloc__; +#endif #ifdef __MALLOC_STANDARD__ -- cgit v1.2.3