From c6ba95b2b81c7f68b137c07f344f4f2b56295191 Mon Sep 17 00:00:00 2001 From: Joseph Schuchart Date: Wed, 10 Jul 2024 09:17:07 -0400 Subject: [PATCH] Add feature test macro to enable pthread_mutexattr_settype() Signed-off-by: Joseph Schuchart --- opal/mca/threads/pthreads/threads_pthreads_mutex.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/opal/mca/threads/pthreads/threads_pthreads_mutex.h b/opal/mca/threads/pthreads/threads_pthreads_mutex.h index 0207681ee9f..02291a29230 100644 --- a/opal/mca/threads/pthreads/threads_pthreads_mutex.h +++ b/opal/mca/threads/pthreads/threads_pthreads_mutex.h @@ -40,6 +40,11 @@ * available. */ +// needed for pthread_mutexattr_settype +#ifndef _GNU_SOURCE +#define _GNU_SOURCE 1 +#endif + #include "opal_config.h" #include