From 8714b5edf7ae63d90b704fa78af5fce087e6d4ff 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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/opal/mca/threads/pthreads/threads_pthreads_mutex.h b/opal/mca/threads/pthreads/threads_pthreads_mutex.h index 0207681ee9f..dd8f412b6a7 100644 --- a/opal/mca/threads/pthreads/threads_pthreads_mutex.h +++ b/opal/mca/threads/pthreads/threads_pthreads_mutex.h @@ -40,6 +40,10 @@ * available. */ +// needed for pthread_mutexattr_settype +#undef _POSIX_C_SOURCE +#define _POSIX_C_SOURCE 200809L + #include "opal_config.h" #include