mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-24 03:31:07 +00:00
nptl: add missing pthread-offsets.h
All architectures using their own definition of struct __pthread_rwlock_arch_t need to provide their own pthread-offsets.h.
This commit is contained in:
parent
1433e270a1
commit
4970c9e0b5
3
sysdeps/aarch64/nptl/pthread-offsets.h
Normal file
3
sysdeps/aarch64/nptl/pthread-offsets.h
Normal file
@ -0,0 +1,3 @@
|
||||
#define __PTHREAD_MUTEX_KIND_OFFSET 16
|
||||
|
||||
#define __PTHREAD_RWLOCK_FLAGS_OFFSET 48
|
3
sysdeps/alpha/nptl/pthread-offsets.h
Normal file
3
sysdeps/alpha/nptl/pthread-offsets.h
Normal file
@ -0,0 +1,3 @@
|
||||
#define __PTHREAD_MUTEX_KIND_OFFSET 16
|
||||
|
||||
#define __PTHREAD_RWLOCK_FLAGS_OFFSET 48
|
3
sysdeps/ia64/nptl/pthread-offsets.h
Normal file
3
sysdeps/ia64/nptl/pthread-offsets.h
Normal file
@ -0,0 +1,3 @@
|
||||
#define __PTHREAD_MUTEX_KIND_OFFSET 16
|
||||
|
||||
#define __PTHREAD_RWLOCK_FLAGS_OFFSET 48
|
3
sysdeps/riscv/nptl/pthread-offsets.h
Normal file
3
sysdeps/riscv/nptl/pthread-offsets.h
Normal file
@ -0,0 +1,3 @@
|
||||
#define __PTHREAD_MUTEX_KIND_OFFSET 16
|
||||
|
||||
#define __PTHREAD_RWLOCK_FLAGS_OFFSET 48
|
13
sysdeps/sparc/nptl/pthread-offsets.h
Normal file
13
sysdeps/sparc/nptl/pthread-offsets.h
Normal file
@ -0,0 +1,13 @@
|
||||
#include <bits/wordsize.h>
|
||||
|
||||
#if __WORDSIZE == 64
|
||||
# define __PTHREAD_MUTEX_KIND_OFFSET 16
|
||||
#else
|
||||
# define __PTHREAD_MUTEX_KIND_OFFSET 12
|
||||
#endif
|
||||
|
||||
#if __WORDSIZE == 64
|
||||
# define __PTHREAD_RWLOCK_FLAGS_OFFSET 48
|
||||
#else
|
||||
# define __PTHREAD_RWLOCK_FLAGS_OFFSET 27
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user