diff options
author | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-11-25 23:04:25 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-11-27 16:35:31 +0100 |
commit | cee0b058fa0b4501b289a2da365182d60314d746 (patch) | |
tree | 423cf0b65ec2d1f9500b00d09f25952c7aa315d2 /libc/stdlib | |
parent | 031d4eef8d055fbdae8d2fe4f59047e83601a15d (diff) |
add aligned_alloc required for latest gcc libstdc++
Diffstat (limited to 'libc/stdlib')
-rw-r--r-- | libc/stdlib/malloc-standard/memalign.c | 1 | ||||
-rw-r--r-- | libc/stdlib/malloc/memalign.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/libc/stdlib/malloc-standard/memalign.c b/libc/stdlib/malloc-standard/memalign.c index e9ae5a7b9..8cd6f582c 100644 --- a/libc/stdlib/malloc-standard/memalign.c +++ b/libc/stdlib/malloc-standard/memalign.c @@ -127,4 +127,5 @@ void* memalign(size_t alignment, size_t bytes) __MALLOC_UNLOCK; return retval; } +weak_alias(memalign, aligned_alloc) libc_hidden_def(memalign) diff --git a/libc/stdlib/malloc/memalign.c b/libc/stdlib/malloc/memalign.c index 74d5dbd2d..6943279ac 100644 --- a/libc/stdlib/malloc/memalign.c +++ b/libc/stdlib/malloc/memalign.c @@ -93,4 +93,5 @@ memalign (size_t alignment, size_t size) return MALLOC_SETUP (base, end_addr - (unsigned long)base); } +weak_alias(memalign, aligned_alloc) libc_hidden_def(memalign) |