diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-09-05 21:45:19 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-09-05 21:45:19 +0000 |
commit | d63076ebc72eef37df4850c5434f034196b7c267 (patch) | |
tree | a7c45cf85584e548c1cb6629889e53b892c88408 /include/asterisk/lock.h | |
parent | 0ef7f62a84cbc072f474b2f507d2eb078ae25c2c (diff) |
Merged revisions 81569 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r81569 | tilghman | 2007-09-05 12:18:24 -0500 (Wed, 05 Sep 2007) | 2 lines
Solaris x86 compatibility fix
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@81631 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/lock.h')
-rw-r--r-- | include/asterisk/lock.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asterisk/lock.h b/include/asterisk/lock.h index 90ff69091..22c7ef1ca 100644 --- a/include/asterisk/lock.h +++ b/include/asterisk/lock.h @@ -789,7 +789,11 @@ AST_INLINE_API(int ast_atomic_fetchadd_int(volatile int *p, int v), AST_INLINE_API(int ast_atomic_fetchadd_int(volatile int *p, int v), { __asm __volatile ( +#ifdef sun + " lock; xaddl %0, %1 ; " +#else " lock xaddl %0, %1 ; " +#endif : "+r" (v), /* 0 (result) */ "=m" (*p) /* 1 */ : "m" (*p)); /* 2 */ |