set errno in malloc_get_state to match glibc

pull/138/head
Daniel Micay 2021-05-12 20:19:12 -04:00
parent a45dacc57b
commit 89faba4232
1 changed files with 1 additions and 0 deletions

View File

@ -2018,6 +2018,7 @@ COLD EXPORT void h_malloc_enable(void) {
#ifdef __GLIBC__ #ifdef __GLIBC__
COLD EXPORT void *h_malloc_get_state(void) { COLD EXPORT void *h_malloc_get_state(void) {
errno = ENOSYS;
return NULL; return NULL;
} }