From: Adhemerval Zanella Date: Tue, 26 Nov 2019 19:51:43 +0000 (-0300) Subject: nptl: Fix __PTHREAD_MUTEX_INITIALIZER for !__PTHREAD_MUTEX_HAVE_PREV X-Git-Tag: glibc-2.31~221 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=acfe409119f5db9429a2a2235fd2ad1242940cac;p=thirdparty%2Fglibc.git 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*). --- diff --git a/sysdeps/nptl/bits/struct_mutex.h b/sysdeps/nptl/bits/struct_mutex.h index 138320b0f3d..24d42c44dcb 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