Linux mutex: restored the __m_kind field

This particular field is at the same offset on all architectures with the same
bit width, and is guaranteed by glibc to remain at this offset for backward
compatibility with static initialisers.

Resolves #40021
This commit is contained in:
Jonas Maebe 2022-12-03 20:59:59 +01:00
parent 230142e183
commit 88ae6721c6

View File

@ -37,6 +37,12 @@
1 : (
__align : sizeint;
);
2 : (
pad1, pad2, pad3 {$ifdef cpu64}, pad4{$endif}: longint;
{ this field is guaranteed to stay at this offset by glibc for
binary compatibility with static initialisers }
__m_kind: longint;
);
end;
{$ifdef __SIZEOF_PTHREAD_MUTEX_T}