only provide malloc_info stub for glibc

This has a proper implementation in Bionic outside of the malloc
implementation via the extended mallinfo API.
This commit is contained in:
Daniel Micay 2019-04-06 22:01:12 -04:00
parent 350d0e5fd2
commit 0f107cd2a3

View File

@ -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;