aboutsummaryrefslogtreecommitdiffstats
path: root/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils.c')
-rwxr-xr-xutils.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils.c b/utils.c
index ab71677f5..893543c15 100755
--- a/utils.c
+++ b/utils.c
@@ -389,7 +389,9 @@ int ast_utils_init(void)
return 0;
}
-
+#ifndef __linux__
+#undef pthread_create /* For ast_pthread_create function only */
+#endif /* ! LINUX */
int ast_pthread_create_stack(pthread_t *thread, pthread_attr_t *attr, void *(*start_routine)(void *), void *data, size_t stacksize)
{
pthread_attr_t lattr;