about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/internal/malloc_impl.h2
-rw-r--r--src/malloc/aligned_alloc.c3
-rw-r--r--src/malloc/posix_memalign.c3
3 files changed, 4 insertions, 4 deletions
diff --git a/src/internal/malloc_impl.h b/src/internal/malloc_impl.h
index 40d16960..88b4f670 100644
--- a/src/internal/malloc_impl.h
+++ b/src/internal/malloc_impl.h
@@ -12,6 +12,8 @@ void *__expand_heap(size_t *);
 
 void __malloc_donate(char *, char *);
 
+void *__memalign(size_t, size_t);
+
 struct chunk {
 	size_t psize, csize;
 	struct chunk *next, *prev;
diff --git a/src/malloc/aligned_alloc.c b/src/malloc/aligned_alloc.c
index cc0a8012..b6143f30 100644
--- a/src/malloc/aligned_alloc.c
+++ b/src/malloc/aligned_alloc.c
@@ -1,6 +1,5 @@
 #include <stdlib.h>
-
-void *__memalign(size_t, size_t);
+#include "malloc_impl.h"
 
 void *aligned_alloc(size_t align, size_t len)
 {
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)
 {