From e0d680176f65f2da69bdf9aabe868997fa3ee24b Mon Sep 17 00:00:00 2001 From: Ian Rogers Date: Tue, 28 Aug 2012 16:36:08 -0700 Subject: [PATCH] Revert "Revert "Restore posix_memalign"" This reverts commit 78a3069f827386df6166ccf9366a89be782f1dde. --- libc/bionic/malloc_debug_common.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libc/bionic/malloc_debug_common.c b/libc/bionic/malloc_debug_common.c index 9333de96c..2f4e55b2a 100644 --- a/libc/bionic/malloc_debug_common.c +++ b/libc/bionic/malloc_debug_common.c @@ -210,6 +210,11 @@ void* pvalloc(size_t bytes) return dlpvalloc(bytes); } +int posix_memalign(void** memptr, size_t alignment, size_t size) +{ + return dlposix_memalign(memptr, alignment, size); +} + /* Support for malloc debugging. * Note that if USE_DL_PREFIX is not defined, it's assumed that memory * allocation routines are implemented somewhere else, so all our custom