]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 199857 via svnmerge from
authorSean Bright <sean@malleable.com>
Wed, 10 Jun 2009 16:13:16 +0000 (16:13 +0000)
committerSean Bright <sean@malleable.com>
Wed, 10 Jun 2009 16:13:16 +0000 (16:13 +0000)
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: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@199859 65c4cc65-6c06-0410-ace0-fbb531ad65f3

include/asterisk/utils.h

index 05f15ac384cc1fdbcfbdb513d7666f8e55cf61f4..fcbbdbd394d9bb0a214e766239abd1384214de29 100644 (file)
@@ -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