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:
Rich Felker
2013-07-22 13:57:02 -04:00
parent c4dd0c98ba
commit 0109d950e6
12 changed files with 25 additions and 25 deletions

View File

@ -3,7 +3,7 @@
int pthread_mutexattr_setpshared(pthread_mutexattr_t *a, int pshared)
{
if (pshared > 1U) return EINVAL;
*a &= 0x7fffffff;
*a |= pshared<<31;
a->__attr &= 0x7fffffff;
a->__attr |= pshared<<31;
return 0;
}