diff options
Diffstat (limited to 'sysdeps/mach/hurd/cthreads.c')
-rw-r--r-- | sysdeps/mach/hurd/cthreads.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sysdeps/mach/hurd/cthreads.c b/sysdeps/mach/hurd/cthreads.c index d4c8dd2d1a..273cd0f8a2 100644 --- a/sysdeps/mach/hurd/cthreads.c +++ b/sysdeps/mach/hurd/cthreads.c @@ -19,6 +19,21 @@ #include <errno.h> #include <stdlib.h> +char __libc_lock_self0[0]; +#if IS_IN_rtld +/* We don't support static tls relocation so early, but we do not have threads + there either anyway. */ +static char __libc_lock_self[0]; +#else +static __thread char __libc_lock_self[0]; +#endif + +void * +__libc_get_lock_self(void) +{ + return (void*) &__libc_lock_self; +} + /* Placeholder for key creation routine from Hurd cthreads library. */ int weak_function |