fix build with musl

This commit is contained in:
Daniel Micay
2018-09-06 14:35:08 -04:00
parent e891b40588
commit a875951e82
2 changed files with 4 additions and 0 deletions

View File

@@ -1049,9 +1049,11 @@ EXPORT int h_malloc_trim(UNUSED size_t pad) {
EXPORT void h_malloc_stats(void) {}
#if defined(__GLIBC__) || defined(__ANDROID__)
EXPORT struct mallinfo h_mallinfo(void) {
return (struct mallinfo){0};
}
#endif
EXPORT int h_malloc_info(UNUSED int options, UNUSED FILE *fp) {
errno = ENOSYS;