From 4970c9e0b58773566a4073852c239f3662cec0aa Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Wed, 5 Feb 2020 18:09:04 +0100 Subject: 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. --- sysdeps/sparc/nptl/pthread-offsets.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 sysdeps/sparc/nptl/pthread-offsets.h (limited to 'sysdeps/sparc') diff --git a/sysdeps/sparc/nptl/pthread-offsets.h b/sysdeps/sparc/nptl/pthread-offsets.h new file mode 100644 index 0000000000..ac50a5a7a6 --- /dev/null +++ b/sysdeps/sparc/nptl/pthread-offsets.h @@ -0,0 +1,13 @@ +#include + +#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 -- cgit 1.4.1