summaryrefslogtreecommitdiff
path: root/libpthread/sysdeps/generic/pt-mutex-destroy.c
diff options
context:
space:
mode:
Diffstat (limited to 'libpthread/sysdeps/generic/pt-mutex-destroy.c')
-rw-r--r--libpthread/sysdeps/generic/pt-mutex-destroy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libpthread/sysdeps/generic/pt-mutex-destroy.c b/libpthread/sysdeps/generic/pt-mutex-destroy.c
index b0ca00f7..3bbc73fe 100644
--- a/libpthread/sysdeps/generic/pt-mutex-destroy.c
+++ b/libpthread/sysdeps/generic/pt-mutex-destroy.c
@@ -26,7 +26,8 @@
int
_pthread_mutex_destroy (pthread_mutex_t *mutex)
{
- if (mutex->attr == &__pthread_recursive_mutexattr)
+ if (mutex->attr == __PTHREAD_ERRORCHECK_MUTEXATTR
+ || mutex->attr == __PTHREAD_RECURSIVE_MUTEXATTR)
/* Static attributes. */
;
else