mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 09:09:19 +02:00
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:
parent
230142e183
commit
88ae6721c6
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user