From: Josh Roberson Date: Tue, 8 Mar 2005 20:47:30 +0000 (+0000) Subject: Fix compile of utils.c on *BSD (Bug #3724) X-Git-Tag: 1.2.0-beta1~1105 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e1459ede017479df49030a5a5d0b355aadca075c;p=thirdparty%2Fasterisk.git Fix compile of utils.c on *BSD (Bug #3724) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5152 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/utils.c b/utils.c index ab71677f59..893543c15b 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;