X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmalloc%2Fposix_memalign.c;h=2ea8bd8a434a22f555e2ed9482299f0029870c73;hb=1ef37aa00ea830dfda76e04e3d941cafa74d8b76;hp=ad4d8f473015e378ad1025363cd68507ec539f18;hpb=651416182dc65d75e91cadfec65dd72f9ff07846;p=musl diff --git a/src/malloc/posix_memalign.c b/src/malloc/posix_memalign.c index ad4d8f47..2ea8bd8a 100644 --- a/src/malloc/posix_memalign.c +++ b/src/malloc/posix_memalign.c @@ -1,10 +1,11 @@ #include #include +#include "malloc_impl.h" int posix_memalign(void **res, size_t align, size_t len) { if (align < sizeof(void *)) return EINVAL; - void *mem = aligned_alloc(align, len); + void *mem = __memalign(align, len); if (!mem) return errno; *res = mem; return 0;