work around old glibc releases without threads.h
This commit is contained in:
parent
5449f4a94e
commit
12525f2861
@ -6,8 +6,12 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#if N_ARENA > 1
|
|
||||||
|
#if __has_include(<threads.h>)
|
||||||
#include <threads.h>
|
#include <threads.h>
|
||||||
|
#else
|
||||||
|
// glibc < 2.28
|
||||||
|
#define thread_local _Thread_local
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user