summaryrefslogtreecommitdiff
path: root/include/asterisk/lock.h
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-10-17 22:13:05 +0000
committerMark Spencer <markster@digium.com>2004-10-17 22:13:05 +0000
commit12e2fe4d94d4ddb9e7717450860bfb94d9aad820 (patch)
treeb68846ec425ce1bb717d2ea9a49ad679234796dd /include/asterisk/lock.h
parent9f5f95fe8702d6c105f7975c5ca02423b80c03f5 (diff)
Thread fixes, vm fix (bug #2665)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4030 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/lock.h')
-rwxr-xr-xinclude/asterisk/lock.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asterisk/lock.h b/include/asterisk/lock.h
index 7d2807d85..dad4fcc0a 100755
--- a/include/asterisk/lock.h
+++ b/include/asterisk/lock.h
@@ -368,6 +368,8 @@ static inline int ast_mutex_trylock(ast_mutex_t *pmutex)
#define AST_MUTEX_INITIALIZER __use_AST_MUTEX_DEFINE_STATIC_rather_than_AST_MUTEX_INITIALIZER__
#define gethostbyname __gethostbyname__is__not__reentrant__use__ast_gethostbyname__instead__
+#ifndef __linux__
#define pthread_create __use_ast_pthread_create_instead__
+#endif
#endif