[asterisk-commits] seanbright: branch 1.4 r199856 - /branches/1.4/include/asterisk/utils.h

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jun 10 11:08:38 CDT 2009


Author: seanbright
Date: Wed Jun 10 11:08:35 2009
New Revision: 199856

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=199856
Log:
__WORDSIZE is not available on all platforms, so use sizeof(void *) instead.

Modified:
    branches/1.4/include/asterisk/utils.h

Modified: branches/1.4/include/asterisk/utils.h
URL: http://svn.asterisk.org/svn-view/asterisk/branches/1.4/include/asterisk/utils.h?view=diff&rev=199856&r1=199855&r2=199856
==============================================================================
--- branches/1.4/include/asterisk/utils.h (original)
+++ branches/1.4/include/asterisk/utils.h Wed Jun 10 11:08:35 2009
@@ -262,10 +262,10 @@
 		|| (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




More information about the asterisk-commits mailing list