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,6 +3,6 @@
|
||||
int pthread_mutex_init(pthread_mutex_t *restrict m, const pthread_mutexattr_t *restrict a)
|
||||
{
|
||||
*m = (pthread_mutex_t){0};
|
||||
if (a) m->_m_type = *a & 7;
|
||||
if (a) m->_m_type = a->__attr & 7;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user