summaryrefslogtreecommitdiff
path: root/sysdeps/mach/hurd/cthreads.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/mach/hurd/cthreads.c')
-rw-r--r--sysdeps/mach/hurd/cthreads.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sysdeps/mach/hurd/cthreads.c b/sysdeps/mach/hurd/cthreads.c
index d4c8dd2d1a..b53a1899cc 100644
--- a/sysdeps/mach/hurd/cthreads.c
+++ b/sysdeps/mach/hurd/cthreads.c
@@ -19,6 +19,15 @@
#include <errno.h>
#include <stdlib.h>
+char __libc_lock_self0[0];
+static __thread char __libc_lock_self[0];
+
+void *
+__libc_get_lock_self(void)
+{
+ return (void*) &__libc_lock_self;
+}
+
/* Placeholder for key creation routine from Hurd cthreads library. */
int
weak_function