[Asterisk-Dev] utils.c / lock.h problem

Wolfgang S. Rupprecht list+asterisk-dev at lists.wsrcc.com
Mon Mar 7 09:30:01 MST 2005


asterisk-current (from cvs of a few minutes ago) doesn't compile on
openbsd/amd64 any more.

utils.c:405: calls pthread_create

lock.h:378: defines pthread_create away so that nobody can use it.

Can the two authors please slug it out and tell us who won? ;-)


--- lock.h.~1.30.~	Tue Mar  1 13:30:19 2005
+++ lock.h	Mon Mar  7 08:28:28 2005
@@ -374,8 +374,11 @@
 #define AST_MUTEX_INITIALIZER __use_AST_MUTEX_DEFINE_STATIC_rather_than_AST_MUTEX_INITIALIZER__
 
 #define gethostbyname __gethostbyname__is__not__reentrant__use__ast_gethostbyname__instead__
+
+#if 0				/* 2005/3/7 -wsr */
 #ifndef __linux__
 #define pthread_create __use_ast_pthread_create_instead__
+#endif
 #endif
 
 #endif


-- 
Wolfgang S. Rupprecht                http://www.wsrcc.com/wolfgang/



More information about the asterisk-dev mailing list