aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2019-11-26 16:51:43 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2019-11-26 17:00:19 -0300
commitacfe409119f5db9429a2a2235fd2ad1242940cac (patch)
treeac7a2712988430ce726fe9e1ec2bf6384a813b1f /sysdeps
parentc72e5cd87dcb075782f9b6beea024b984f2e1130 (diff)
downloadglibc-acfe409119f5db9429a2a2235fd2ad1242940cac.tar
glibc-acfe409119f5db9429a2a2235fd2ad1242940cac.tar.gz
glibc-acfe409119f5db9429a2a2235fd2ad1242940cac.tar.bz2
glibc-acfe409119f5db9429a2a2235fd2ad1242940cac.zip
nptl: Fix __PTHREAD_MUTEX_INITIALIZER for !__PTHREAD_MUTEX_HAVE_PREV
The nptl: Add struct_mutex.h added a wrong initializer for architectures that uses the generic struct_mutex.h. Checked on sparcv9-linux-gnu (where I noted the issue with the nptl/tst-initializers1*).
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/nptl/bits/struct_mutex.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/nptl/bits/struct_mutex.h b/sysdeps/nptl/bits/struct_mutex.h
index 138320b0f3..24d42c44dc 100644
--- a/sysdeps/nptl/bits/struct_mutex.h
+++ b/sysdeps/nptl/bits/struct_mutex.h
@@ -78,7 +78,7 @@ struct __pthread_mutex_s
0, 0, 0, 0, __kind, 0, { 0, 0 }
#else
# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
- 0, 0, 0, 0, __kind, { 0 }
+ 0, 0, 0, __kind, 0, { 0 }
#endif
#endif