diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2010-01-18 14:44:22 -0800 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 2010-01-18 14:44:22 -0800 |
commit | d924beb0f2d823d72715aee58f87eba5d4d6ebe3 (patch) | |
tree | 996411328bf0a7a9af7ac7ea037169126669095c /sysdeps | |
parent | d6ac9329b3baf72e1f7a6dfd10ff5236668c2d10 (diff) | |
download | glibc-d924beb0f2d823d72715aee58f87eba5d4d6ebe3.tar glibc-d924beb0f2d823d72715aee58f87eba5d4d6ebe3.tar.gz glibc-d924beb0f2d823d72715aee58f87eba5d4d6ebe3.tar.bz2 glibc-d924beb0f2d823d72715aee58f87eba5d4d6ebe3.zip |
Define __rtld_lock_recursive_* for Hurd.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/mach/hurd/bits/libc-lock.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/mach/hurd/bits/libc-lock.h b/sysdeps/mach/hurd/bits/libc-lock.h index 0fa90bcc3e..90e46e02f6 100644 --- a/sysdeps/mach/hurd/bits/libc-lock.h +++ b/sysdeps/mach/hurd/bits/libc-lock.h @@ -31,6 +31,7 @@ typedef struct void *owner; int count; } __libc_lock_recursive_t; +typedef __libc_lock_recursive_t __rtld_lock_recursive_t; #define __libc_lock_owner_self() ((void *) __hurd_threadvar_location (0)) @@ -121,6 +122,8 @@ typedef struct __libc_lock_recursive_opaque__ __libc_lock_recursive_t; #define __rtld_lock_init_recursive(NAME) \ __libc_lock_init_recursive (NAME) +#define __rtld_lock_initialize(NAME) \ + (void) ((NAME) = (__rtld_lock_recursive_t) _RTLD_LOCK_RECURSIVE_INITIALIZER) #define __rtld_lock_trylock_recursive(NAME) \ __libc_lock_trylock_recursive (NAME) #define __rtld_lock_lock_recursive(NAME) \ |