]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
__WORDSIZE is not available on all platforms, so use sizeof(void *) instead.
authorSean Bright <sean@malleable.com>
Wed, 10 Jun 2009 16:08:35 +0000 (16:08 +0000)
committerSean Bright <sean@malleable.com>
Wed, 10 Jun 2009 16:08:35 +0000 (16:08 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@199856 65c4cc65-6c06-0410-ace0-fbb531ad65f3

include/asterisk/utils.h

index 58b861bd67d3263df25ca63368a6036fcc5bb279..85638d7b41062b20969aa0999625ade04043b688 100644 (file)
@@ -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