diff options
Diffstat (limited to 'libgcompat/malloc.c')
-rw-r--r-- | libgcompat/malloc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libgcompat/malloc.c b/libgcompat/malloc.c index b90bd81..7478834 100644 --- a/libgcompat/malloc.c +++ b/libgcompat/malloc.c @@ -25,6 +25,7 @@ #include <string.h> /* memset */ #include <stdlib.h> /* {m,c,re}alloc, free */ +#include <malloc.h> /* memalign */ struct mallinfo { int arena; /* Non-mmapped space allocated (bytes) */ @@ -66,6 +67,11 @@ void *__libc_realloc(void *ptr, size_t size) return realloc(ptr, size); } +void *__libc_memalign(size_t align, size_t len) +{ + return memalign(align, len); +} + extern __typeof(__libc_malloc) __malloc __attribute__((weak, alias("__libc_malloc"))); extern __typeof(__libc_calloc) __calloc __attribute__((weak, alias("__libc_calloc"))); extern __typeof(__libc_realloc) __realloc __attribute__((weak, alias("__libc_realloc"))); |