mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-10 11:58:08 +00:00
Fix stack size (take 2) (bug #3706)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5126 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -160,19 +160,12 @@ struct ast_realloca {
|
||||
#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
|
||||
|
||||
Reference in New Issue
Block a user