From 89faba423293235089e05031d0e475edfe5e65e8 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Wed, 12 May 2021 20:19:12 -0400 Subject: [PATCH] set errno in malloc_get_state to match glibc --- h_malloc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/h_malloc.c b/h_malloc.c index 83f9732..17891f4 100644 --- a/h_malloc.c +++ b/h_malloc.c @@ -2018,6 +2018,7 @@ COLD EXPORT void h_malloc_enable(void) { #ifdef __GLIBC__ COLD EXPORT void *h_malloc_get_state(void) { + errno = ENOSYS; return NULL; }