aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/pthread/tst-mtx-recursive.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/pthread/tst-mtx-recursive.c')
-rw-r--r--sysdeps/pthread/tst-mtx-recursive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/pthread/tst-mtx-recursive.c b/sysdeps/pthread/tst-mtx-recursive.c
index 6b471ac724..aca8cee6eb 100644
--- a/sysdeps/pthread/tst-mtx-recursive.c
+++ b/sysdeps/pthread/tst-mtx-recursive.c
@@ -27,7 +27,7 @@ do_test (void)
{
static mtx_t mutex;
- if (mtx_init (&mutex, mtx_recursive) != thrd_success)
+ if (mtx_init (&mutex, mtx_plain | mtx_recursive) != thrd_success)
FAIL_EXIT1 ("mtx_init failed");
if (mtx_lock (&mutex) != thrd_success)