aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/utils.h
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-03-03 16:18:44 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-03-03 16:18:44 +0000
commit9c7b6ff845ddf5869d9c5cbcb5e98ace5973b7b0 (patch)
tree92576e83655072276ca4cbb9a380435c5befc05b /include/asterisk/utils.h
parent826f85d41e1318170943127cbb55a761b6af48df (diff)
Fix stack size (take 2) (bug #3706)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5126 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/utils.h')
-rwxr-xr-xinclude/asterisk/utils.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/include/asterisk/utils.h b/include/asterisk/utils.h
index 25f7e06f4..c09aa6e2d 100755
--- a/include/asterisk/utils.h
+++ b/include/asterisk/utils.h
@@ -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