mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-11 22:00:08 +00:00
4970c9e0b5
All architectures using their own definition of struct __pthread_rwlock_arch_t need to provide their own pthread-offsets.h.
14 lines
265 B
C
14 lines
265 B
C
#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
|