aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Carlstrom <bdc@google.com>2012-08-20 18:28:20 -0700
committerIan Rogers <irogers@google.com>2012-08-20 19:25:39 -0700
commitbfc1d97531fa611ad2705c7179134b60e652ead4 (patch)
treef03805631b280765892519eea1093afc663f3fc9
parent999089181ef60bb67e1a49f2cf6f4ec608a7caf8 (diff)
downloadandroid_bionic-bfc1d97531fa611ad2705c7179134b60e652ead4.tar.gz
android_bionic-bfc1d97531fa611ad2705c7179134b60e652ead4.tar.bz2
android_bionic-bfc1d97531fa611ad2705c7179134b60e652ead4.zip
Restore posix_memalign
Change-Id: I24e31bcb8b1d8be9375852e76964f09becd11938
-rw-r--r--libc/bionic/malloc_debug_common.c5
1 files changed, 5 insertions, 0 deletions
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