mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:27:43 +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
|
@ -48,7 +48,12 @@
|
|||
|
||||
extern "C" {
|
||||
|
||||
#ifdef NO_TLS
|
||||
static int s_cached_tid = 0;
|
||||
#else
|
||||
static __thread int s_cached_tid = 0;
|
||||
#endif
|
||||
|
||||
static int s_cached_pid = 0;
|
||||
|
||||
int chown(const char* pathname, uid_t uid, gid_t gid)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue