diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-03-13 01:01:26 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-13 01:01:26 -0400 |
| commit | 26b0d34361912a4b521d7202310647909cf7cb44 (patch) | |
| tree | b0d45aa88eaf7cca4b5073c298c6f3a7ba9b7419 /libc/musl/src/malloc/aligned_alloc.c | |
| parent | 761356209bd64ed655be96c0cf11869f2ff5f530 (diff) | |
| parent | c73cd05468fba4bba5762a654aacdd9d90ecd272 (diff) | |
| download | zig-26b0d34361912a4b521d7202310647909cf7cb44.tar.gz zig-26b0d34361912a4b521d7202310647909cf7cb44.zip | |
Merge pull request #2055 from ziglang/musl
support musl for all compatible targets
Diffstat (limited to 'libc/musl/src/malloc/aligned_alloc.c')
| -rw-r--r-- | libc/musl/src/malloc/aligned_alloc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libc/musl/src/malloc/aligned_alloc.c b/libc/musl/src/malloc/aligned_alloc.c new file mode 100644 index 0000000000..b6143f303f --- /dev/null +++ b/libc/musl/src/malloc/aligned_alloc.c @@ -0,0 +1,7 @@ +#include <stdlib.h> +#include "malloc_impl.h" + +void *aligned_alloc(size_t align, size_t len) +{ + return __memalign(align, len); +} |
