diff options
author | Eugene Yudin <e.yudin@ndmsystems.com> | 2017-07-24 22:26:41 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2017-07-28 19:02:31 +0200 |
commit | 63597398e4fa0db50638568a8caa1637bab44705 (patch) | |
tree | 97787b625ee0cd4475d4acf4a29a0f8d9426ebdc /include/stdlib.h | |
parent | 3094aaa2f55622cb3fa85967ff1341831437f2d2 (diff) |
stdlib.h: Fix valloc declaration.
Diffstat (limited to 'include/stdlib.h')
-rw-r--r-- | include/stdlib.h | 4 |
1 files changed, 3 insertions, 1 deletions
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 <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__ |