Skip to content

Commit c6ba95b

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

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

opal/mca/threads/pthreads/threads_pthreads_mutex.h

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

43+
// needed for pthread_mutexattr_settype
44+
#ifndef _GNU_SOURCE
45+
#define _GNU_SOURCE 1
46+
#endif
47+
4348
#include "opal_config.h"
4449

4550
#include <errno.h>

0 commit comments

Comments
 (0)