diff options
author | Sean Bright <sean@malleable.com> | 2009-06-10 16:10:23 +0000 |
---|---|---|
committer | Sean Bright <sean@malleable.com> | 2009-06-10 16:10:23 +0000 |
commit | 2cec55f03883eb0ce7d3c7ef058c7197f7a534e8 (patch) | |
tree | 81f32e94017eecb3f089f73c43deac578f56e414 /include/asterisk/utils.h | |
parent | 59d93c1e2d372b344e543bdf7e31eb003925293d (diff) |
Merged revisions 199856 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r199856 | seanbright | 2009-06-10 12:08:35 -0400 (Wed, 10 Jun 2009) | 2 lines
__WORDSIZE is not available on all platforms, so use sizeof(void *) instead.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@199857 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/utils.h')
-rw-r--r-- | include/asterisk/utils.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asterisk/utils.h b/include/asterisk/utils.h index 8a37fca34..abbeba2ab 100644 --- a/include/asterisk/utils.h +++ b/include/asterisk/utils.h @@ -350,10 +350,10 @@ int ast_careful_fwrite(FILE *f, int fd, const char *s, size_t len, int timeoutms * Thread management support (should be moved to lock.h or a different header) */ -#define AST_STACKSIZE (((__WORDSIZE * 8) - 16) * 1024) +#define AST_STACKSIZE (((sizeof(void *) * 8 * 8) - 16) * 1024) #if defined(LOW_MEMORY) -#define AST_BACKGROUND_STACKSIZE (((__WORDSIZE * 2) - 16) * 1024) +#define AST_BACKGROUND_STACKSIZE (((sizeof(void *) * 8 * 2) - 16) * 1024) #else #define AST_BACKGROUND_STACKSIZE AST_STACKSIZE #endif |