diff options
author | seanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-06-10 16:08:35 +0000 |
---|---|---|
committer | seanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-06-10 16:08:35 +0000 |
commit | eb0fb288288b04618fffdb638a58ff297ff5c2eb (patch) | |
tree | 64593b3609abae51eeac6082cd8c85ff5c16e045 /include | |
parent | 7128363ea48d49fadc3da6a7966fe960d818a196 (diff) |
__WORDSIZE is not available on all platforms, so use sizeof(void *) instead.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@199856 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 58b861bd6..85638d7b4 100644 --- a/include/asterisk/utils.h +++ b/include/asterisk/utils.h @@ -262,10 +262,10 @@ static force_inline int inaddrcmp(const struct sockaddr_in *sin1, const struct s || (sin1->sin_port != sin2->sin_port)); } -#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 |