From acfe409119f5db9429a2a2235fd2ad1242940cac Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Tue, 26 Nov 2019 16:51:43 -0300 Subject: [PATCH] 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*). --- sysdeps/nptl/bits/struct_mutex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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