Skip to content

Commit 8714b5e

Browse files
committed
Add feature test macro to enable pthread_mutexattr_settype()
Signed-off-by: Joseph Schuchart <[email protected]>
1 parent d150386 commit 8714b5e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

opal/mca/threads/pthreads/threads_pthreads_mutex.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@
4040
* available.
4141
*/
4242

43+
// needed for pthread_mutexattr_settype
44+
#undef _POSIX_C_SOURCE
45+
#define _POSIX_C_SOURCE 200809L
46+
4347
#include "opal_config.h"
4448

4549
#include <errno.h>

0 commit comments

Comments
 (0)