work around old glibc releases without threads.h

This commit is contained in:
Daniel Micay 2019-06-06 08:10:57 -04:00
parent 5449f4a94e
commit 12525f2861

View File

@ -6,8 +6,12 @@
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#if N_ARENA > 1
#if __has_include(<threads.h>)
#include <threads.h>
#else
// glibc < 2.28
#define thread_local _Thread_local
#endif
#include <malloc.h>