commit 3990f36e0ba7177cb36effe24ef72dca04c762c0
Author: Eugene Yudin <e.yudin@ndmsystems.com>
Date:   Wed May 4 14:56:57 2016 +0300

    stdlib.h: Fix valloc declaration.

diff --git a/include/stdlib.h b/include/stdlib.h
index cbc0473..8947796 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -518,9 +518,11 @@ extern void cfree (void *__ptr) __THROW;
 # include <alloca.h>
 #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__
