From 035b942a7a38372715e6197aaf78cf8301e5b1e0 Mon Sep 17 00:00:00 2001 From: Sean Bright Date: Wed, 10 Jun 2009 16:08:35 +0000 Subject: [PATCH] __WORDSIZE is not available on all platforms, so use sizeof(void *) instead. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@199856 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- include/asterisk/utils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/asterisk/utils.h b/include/asterisk/utils.h index 58b861bd67..85638d7b41 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