From 0109d950e685f1c5f6cef245a8b1bc47c9b6d94c Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Mon, 22 Jul 2013 13:57:02 -0400 Subject: 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. --- src/thread/pthread_mutexattr_setrobust.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/thread/pthread_mutexattr_setrobust.c') diff --git a/src/thread/pthread_mutexattr_setrobust.c b/src/thread/pthread_mutexattr_setrobust.c index 4a296ba1..dcfa4cf1 100644 --- a/src/thread/pthread_mutexattr_setrobust.c +++ b/src/thread/pthread_mutexattr_setrobust.c @@ -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; } -- cgit v1.2.1