From 63597398e4fa0db50638568a8caa1637bab44705 Mon Sep 17 00:00:00 2001 From: Eugene Yudin Date: Mon, 24 Jul 2017 22:26:41 +0200 Subject: stdlib.h: Fix valloc declaration. --- include/stdlib.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/stdlib.h b/include/stdlib.h index cbc0473f4..89477967e 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -518,9 +518,11 @@ extern void cfree (void *__ptr) __THROW; # include #endif /* Use GNU, BSD, or misc. */ -#if defined __USE_BSD || defined __USE_XOPEN_EXTENDED +#ifdef __UCLIBC_SUSV2_LEGACY__ +# if defined __USE_BSD || defined __USE_XOPEN_EXTENDED /* Allocate SIZE bytes on a page boundary. The storage cannot be freed. */ extern void *valloc (size_t __size) __THROW __attribute_malloc__ __wur; +# endif #endif #if defined __USE_XOPEN2K && defined __UCLIBC_HAS_ADVANCED_REALTIME__ -- cgit v1.2.3