mirror of
https://github.com/fluencelabs/musl
synced 2025-06-28 14:11:56 +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_mutexattr_setrobust(pthread_mutexattr_t *a, int robust)
|
||||
{
|
||||
if (robust > 1U) return EINVAL;
|
||||
*a &= ~4;
|
||||
*a |= robust*4;
|
||||
a->__attr &= ~4;
|
||||
a->__attr |= robust*4;
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user