about summary refs log tree commit diff
path: root/src/malloc/posix_memalign.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2018-09-10 20:28:47 -0400
committerRich Felker <dalias@aerifal.cx>2018-09-12 14:34:32 -0400
commitb07a5d66988344616d8dc61c6930be134086e99c (patch)
treec1df504b87e559ea7a66bc5bbd0ba0dbcf345d04 /src/malloc/posix_memalign.c
parent762cf6cdb36ec4403d833c85371a4df686e0e58d (diff)
downloadmusl-b07a5d66988344616d8dc61c6930be134086e99c.tar.gz
musl-b07a5d66988344616d8dc61c6930be134086e99c.tar.xz
musl-b07a5d66988344616d8dc61c6930be134086e99c.zip
move __memalign declaration to malloc_impl.h
the malloc-implementation-private header is the only right place for
this, because, being in the reserved namespace, __memalign is not
interposable and thus not valid to use anywhere else. anything outside
of the malloc implementation must call an appropriate-namespace public
function (aligned_alloc or posix_memalign).
Diffstat (limited to 'src/malloc/posix_memalign.c')
-rw-r--r--src/malloc/posix_memalign.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/malloc/posix_memalign.c b/src/malloc/posix_memalign.c
index cf67db63..2ea8bd8a 100644
--- a/src/malloc/posix_memalign.c
+++ b/src/malloc/posix_memalign.c
@@ -1,7 +1,6 @@
 #include <stdlib.h>
 #include <errno.h>
-
-void *__memalign(size_t, size_t);
+#include "malloc_impl.h"
 
 int posix_memalign(void **res, size_t align, size_t len)
 {