diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-03-12 17:32:32 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-03-12 17:32:32 -0400 |
| commit | 62486c35a483d759b29fa5da235da66590bde6d7 (patch) | |
| tree | 9325e41870f70db4d044345eaafd565a800adaf9 /libc/musl/src/malloc/aligned_alloc.c | |
| parent | 5734b7a37a75b927ca31e52ad915d7de125993d9 (diff) | |
| download | zig-62486c35a483d759b29fa5da235da66590bde6d7.tar.gz zig-62486c35a483d759b29fa5da235da66590bde6d7.zip | |
ability to build musl from source
bundles musl 1.1.21
See #514
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); +} |
