[Asterisk-cvs] asterisk/include/asterisk utils.h,1.22,1.23

markster at lists.digium.com markster at lists.digium.com
Thu Mar 3 10:21:31 CST 2005


Update of /usr/cvsroot/asterisk/include/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv13244/include/asterisk

Modified Files:
	utils.h 
Log Message:
Fix stack size (take 2) (bug #3706)


Index: utils.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/utils.h,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- utils.h	3 Mar 2005 03:46:41 -0000	1.22
+++ utils.h	3 Mar 2005 16:18:44 -0000	1.23
@@ -160,19 +160,12 @@
 #endif
 #define inet_ntoa __dont__use__inet_ntoa__use__ast_inet_ntoa__instead__
 
-#define AST_STACK_SIZE 128 * 1024
+#define AST_STACKSIZE 128 * 1024
 
 #ifdef __linux__
-#define ast_pthread_create pthread_create
 #define ast_strcasestr strcasestr
 #else
-/* Linux threads have a default 2MB stack size. */
-#ifndef PTHREAD_ATTR_STACKSIZE
-#define	PTHREAD_ATTR_STACKSIZE		2097152
-#endif /* PTHREAD_ATTR_STACKSIZE */
-extern int ast_pthread_create(pthread_t *thread, pthread_attr_t *attr, void *(*start_routine)(void *), void *data);
 extern char *ast_strcasestr(const char *, const char *);
 #endif /* __linux__ */
-
-
+extern int ast_pthread_create(pthread_t *thread, pthread_attr_t *attr, void *(*start_routine)(void *), void *data);
 #endif




More information about the svn-commits mailing list