about summary refs log tree commit diff
path: root/sysdeps/sparc/nptl/pthread-offsets.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/sparc/nptl/pthread-offsets.h')
-rw-r--r--sysdeps/sparc/nptl/pthread-offsets.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sysdeps/sparc/nptl/pthread-offsets.h b/sysdeps/sparc/nptl/pthread-offsets.h
index 25b5bf2cbd..9e2112120b 100644
--- a/sysdeps/sparc/nptl/pthread-offsets.h
+++ b/sysdeps/sparc/nptl/pthread-offsets.h
@@ -5,3 +5,9 @@
 #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