From 1b6f6a92e34fc726b6dfc249d90e8812f9d757a8 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 2 Oct 2003 18:56:20 +0000 Subject: Update. 2003-10-02 Jeroen Dekkers * sysdeps/mach/hurd/malloc-machine.h: Copy the tsd code from the old thread-m.h header too. --- sysdeps/mach/hurd/malloc-machine.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'sysdeps/mach/hurd/malloc-machine.h') diff --git a/sysdeps/mach/hurd/malloc-machine.h b/sysdeps/mach/hurd/malloc-machine.h index f04947fe98..70aaf11b87 100644 --- a/sysdeps/mach/hurd/malloc-machine.h +++ b/sysdeps/mach/hurd/malloc-machine.h @@ -53,6 +53,16 @@ /* No we're *not* using pthreads. */ #define __pthread_initialize ((void (*)(void))0) +/* thread specific data for glibc */ + +#include + +typedef int tsd_key_t[1]; /* no key data structure, libc magic does it */ +__libc_tsd_define (static, MALLOC) /* declaration/common definition */ +#define tsd_key_create(key, destr) ((void) (key)) +#define tsd_setspecific(key, data) __libc_tsd_set (MALLOC, (data)) +#define tsd_getspecific(key, vptr) ((vptr) = __libc_tsd_get (MALLOC)) + #include #endif /* !defined(_MALLOC_MACHINE_H) */ -- cgit v1.2.3