aboutsummaryrefslogtreecommitdiffstats
path: root/utils.c
diff options
context:
space:
mode:
authortwisted <twisted@f38db490-d61c-443f-a65b-d21fe96a405b>2005-03-08 20:47:30 +0000
committertwisted <twisted@f38db490-d61c-443f-a65b-d21fe96a405b>2005-03-08 20:47:30 +0000
commitac018c2a585f2ccd1473d3af7cbedf1edbbfe300 (patch)
treef84a027a0426060eeb86fad02a64e807ae1b7c6b /utils.c
parent520309df13288c76a80782babdec198d202f8f55 (diff)
Fix compile of utils.c on *BSD (Bug #3724)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5152 f38db490-d61c-443f-a65b-d21fe96a405b
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;