mirror of
https://github.com/fluencelabs/musl
synced 2025-07-02 08:01:58 +00:00
make pthread attribute types structs, even when they just have one field
this change is to get the right tags for C++ ABI matching. it should have no other effects.
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
int pthread_condattr_setclock(pthread_condattr_t *a, clockid_t clk)
|
||||
{
|
||||
if (clk < 0 || clk-2U < 2) return EINVAL;
|
||||
*a &= 0x80000000;
|
||||
*a |= clk;
|
||||
a->__attr &= 0x80000000;
|
||||
a->__attr |= clk;
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user