From 12525f28618ef577ea931a1dc151cd19a462aa73 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Thu, 6 Jun 2019 08:10:57 -0400 Subject: [PATCH] work around old glibc releases without threads.h --- h_malloc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/h_malloc.c b/h_malloc.c index 8d76aad..62522af 100644 --- a/h_malloc.c +++ b/h_malloc.c @@ -6,8 +6,12 @@ #include #include #include -#if N_ARENA > 1 + +#if __has_include() #include +#else +// glibc < 2.28 +#define thread_local _Thread_local #endif #include