mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:38:11 +00:00
LibC: Add NO_TLS preprocessor flag
When this flag is defined, LibC does not use TLS. It will be useful for the dynamic loader.
This commit is contained in:
parent
65ee2f07b7
commit
781aa424a9
3 changed files with 14 additions and 0 deletions
|
@ -31,7 +31,11 @@
|
|||
|
||||
extern "C" {
|
||||
|
||||
#ifdef NO_TLS
|
||||
int errno;
|
||||
#else
|
||||
__thread int errno;
|
||||
#endif
|
||||
char** environ;
|
||||
bool __environ_is_malloced;
|
||||
bool __stdio_is_initialized;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue