summaryrefslogtreecommitdiffstats
path: root/include/c11
diff options
context:
space:
mode:
Diffstat (limited to 'include/c11')
-rw-r--r--include/c11/threads_posix.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/include/c11/threads_posix.h b/include/c11/threads_posix.h
index f9c165df4e0..2182c2835aa 100644
--- a/include/c11/threads_posix.h
+++ b/include/c11/threads_posix.h
@@ -177,13 +177,8 @@ mtx_init(mtx_t *mtx, int type)
&& type != (mtx_try|mtx_recursive))
return thrd_error;
pthread_mutexattr_init(&attr);
- if ((type & mtx_recursive) != 0) {
-#if defined(__linux__) || defined(__linux)
- pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
-#else
+ if ((type & mtx_recursive) != 0)
pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
-#endif
- }
pthread_mutex_init(mtx, &attr);
pthread_mutexattr_destroy(&attr);
return thrd_success;