diff options
author | seanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-06-10 16:13:14 +0000 |
---|---|---|
committer | seanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-06-10 16:13:14 +0000 |
commit | 28759798c2ec9051d282bfd07bf3a90ba788d519 (patch) | |
tree | cc98456eb000e07c7e00da7dde860a9b21878c95 /include | |
parent | df059f676d45e1a02e2b01a452fb5a32fdd20bc0 (diff) |
Merged revisions 199857 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r199857 | seanbright | 2009-06-10 12:10:23 -0400 (Wed, 10 Jun 2009) | 9 lines
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: http://svn.digium.com/svn/asterisk/branches/1.6.0@199858 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-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 0f00b4a7b..e3297b0ec 100644 --- a/include/asterisk/utils.h +++ b/include/asterisk/utils.h @@ -349,10 +349,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 |