[asterisk-commits] murf: trunk r80075 - in /trunk: include/asterisk/lock.h utils/extconf.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Aug 20 12:37:36 CDT 2007
Author: murf
Date: Mon Aug 20 12:37:36 2007
New Revision: 80075
URL: http://svn.digium.com/view/asterisk?view=rev&rev=80075
Log:
Stephn Davies reports that this will help make things work on 64-bit machines
Modified:
trunk/include/asterisk/lock.h
trunk/utils/extconf.c
Modified: trunk/include/asterisk/lock.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/lock.h?view=diff&rev=80075&r1=80074&r2=80075
==============================================================================
--- trunk/include/asterisk/lock.h (original)
+++ trunk/include/asterisk/lock.h Mon Aug 20 12:37:36 2007
@@ -785,7 +785,7 @@
AST_INLINE_API(int ast_atomic_fetchadd_int(volatile int *p, int v),
{
return OSAtomicAdd64(v, (int64_t *) p);
-#elif defined (__i386__)
+#elif defined (__i386__) || defined(__x86_64__)
AST_INLINE_API(int ast_atomic_fetchadd_int(volatile int *p, int v),
{
__asm __volatile (
Modified: trunk/utils/extconf.c
URL: http://svn.digium.com/view/asterisk/trunk/utils/extconf.c?view=diff&rev=80075&r1=80074&r2=80075
==============================================================================
--- trunk/utils/extconf.c (original)
+++ trunk/utils/extconf.c Mon Aug 20 12:37:36 2007
@@ -1570,7 +1570,7 @@
AST_INLINE_API(int ast_atomic_fetchadd_int(volatile int *p, int v),
{
return OSAtomicAdd64(v, (int64_t *) p);
-#elif defined (__i386__)
+#elif defined (__i386__) || defined(__x86_64__)
AST_INLINE_API(int ast_atomic_fetchadd_int(volatile int *p, int v),
{
__asm __volatile (
More information about the asterisk-commits
mailing list