From cc1f4acbda8f12c2020c2e5f1f8a03221c9ae4e9 Mon Sep 17 00:00:00 2001 From: Brian Carlstrom Date: Mon, 20 Aug 2012 18:28:20 -0700 Subject: [PATCH] Restore posix_memalign Change-Id: I24e31bcb8b1d8be9375852e76964f09becd11938 --- 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 -- 2.11.0