diff options
author | David 'Digit' Turner <digit@android.com> | 2011-07-06 19:02:15 +0200 |
---|---|---|
committer | David 'Digit' Turner <digit@android.com> | 2011-07-06 19:02:15 +0200 |
commit | c51871d4b22425b32ec40c060c39d6b6fa4406f6 (patch) | |
tree | a6ab54ad614fc61af9377d9242c206dd3aaff2f6 /libc/bionic/dlmalloc.c | |
parent | 01eb7f72434830bb14cec906d885d2b7ee40d53b (diff) | |
download | android_bionic-c51871d4b22425b32ec40c060c39d6b6fa4406f6.tar.gz android_bionic-c51871d4b22425b32ec40c060c39d6b6fa4406f6.tar.bz2 android_bionic-c51871d4b22425b32ec40c060c39d6b6fa4406f6.zip |
Really fix the build.
libcutils/mspace.c includes libc/bionic/dlmalloc.c, we need to
take care of the fact that any internal C library function cannot
be used from it.
Change-Id: I0bc81ae090b7ac2d464f26b97fc6b94a08cdad9c
Diffstat (limited to 'libc/bionic/dlmalloc.c')
-rw-r--r-- | libc/bionic/dlmalloc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/bionic/dlmalloc.c b/libc/bionic/dlmalloc.c index 9aab1b780..8c75e9cfb 100644 --- a/libc/bionic/dlmalloc.c +++ b/libc/bionic/dlmalloc.c @@ -2270,7 +2270,7 @@ static void reset_on_error(mstate m); * was detected. We need to be careful about not using a log function * that may require an allocation here! */ -#ifdef __ANDROID__ +#ifdef LOG_ON_HEAP_ERROR # include <private/logd.h> @@ -2300,7 +2300,7 @@ static void __bionic_heap_error(const char* msg, const char* function) __bionic_heap_error("INVALID HEAP ADDRESS", __FUNCTION__) # endif -#else /* !__ANDROID__ */ +#else /* !LOG_ON_HEAP_ERROR */ # ifndef CORRUPTION_ERROR_ACTION # define CORRUPTION_ERROR_ACTION(m) ABORT @@ -2310,7 +2310,7 @@ static void __bionic_heap_error(const char* msg, const char* function) # define USAGE_ERROR_ACTION(m,p) ABORT # endif /* USAGE_ERROR_ACTION */ -#endif /* !__ANDROID__ */ +#endif /* !LOG_ON_HEAP_ERROR */ #endif /* PROCEED_ON_ERROR */ |