From 9966adbdada3ecb15c7f377fce89686bdae72aca Mon Sep 17 00:00:00 2001 From: jvoisin Date: Thu, 23 Dec 2021 20:44:45 +0100 Subject: [PATCH] Add another ifdef for GNU extension --- test/malloc_info.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/malloc_info.c b/test/malloc_info.c index 62a315f..138d850 100644 --- a/test/malloc_info.c +++ b/test/malloc_info.c @@ -26,5 +26,7 @@ int main(void) { pthread_join(thread[i], NULL); } +#if defined(__GLIBC__) || defined(__ANDROID__) malloc_info(0, stdout); +#endif }