From 0f107cd2a32518734aee7dce4964a1ac7b775933 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sat, 6 Apr 2019 22:01:12 -0400 Subject: [PATCH] only provide malloc_info stub for glibc This has a proper implementation in Bionic outside of the malloc implementation via the extended mallinfo API. --- h_malloc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/h_malloc.c b/h_malloc.c index 711bc53..05c8e0c 100644 --- a/h_malloc.c +++ b/h_malloc.c @@ -1628,10 +1628,12 @@ EXPORT struct mallinfo h_mallinfo(void) { } #endif +#ifdef __GLIBC__ EXPORT int h_malloc_info(UNUSED int options, UNUSED FILE *fp) { errno = ENOSYS; return -1; } +#endif COLD EXPORT void *h_malloc_get_state(void) { return NULL;