aboutsummaryrefslogtreecommitdiffstats
path: root/utils/extconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/extconf.c')
-rw-r--r--utils/extconf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/extconf.c b/utils/extconf.c
index 0028e82ae..0e4071833 100644
--- a/utils/extconf.c
+++ b/utils/extconf.c
@@ -1146,7 +1146,7 @@ extern int ast_language_is_prefix;
/* Asterisk REQUIRES recursive (not error checking) mutexes
and will not run without them. */
-#if defined(PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP)
+#if defined(PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP) && defined(PTHREAD_MUTEX_RECURSIVE_NP)
#define PTHREAD_MUTEX_INIT_VALUE PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
#define AST_MUTEX_KIND PTHREAD_MUTEX_RECURSIVE_NP
#else