about summary refs log tree commit diff
path: root/nptl/vars.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/vars.c')
-rw-r--r--nptl/vars.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/nptl/vars.c b/nptl/vars.c
index 45ca486143..3e2db42361 100644
--- a/nptl/vars.c
+++ b/nptl/vars.c
@@ -24,6 +24,9 @@
    provide any.  */
 struct pthread_attr __default_pthread_attr attribute_hidden;
 
+/* Mutex protecting __default_pthread_attr.  */
+int __default_pthread_attr_lock = LLL_LOCK_INITIALIZER;
+
 /* Flag whether the machine is SMP or not.  */
 int __is_smp attribute_hidden;