diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2019-11-26 16:51:43 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2019-11-26 17:00:19 -0300 |
commit | acfe409119f5db9429a2a2235fd2ad1242940cac (patch) | |
tree | ac7a2712988430ce726fe9e1ec2bf6384a813b1f /sysdeps/nptl/bits/struct_mutex.h | |
parent | c72e5cd87dcb075782f9b6beea024b984f2e1130 (diff) | |
download | glibc-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/nptl/bits/struct_mutex.h')
-rw-r--r-- | sysdeps/nptl/bits/struct_mutex.h | 2 |
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 |