diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2007-09-05 21:45:19 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2007-09-05 21:45:19 +0000 |
commit | 9169ac8ef4553a297a91540106fad22a67c6299e (patch) | |
tree | a7c45cf85584e548c1cb6629889e53b892c88408 /include/asterisk | |
parent | 0075b2d63274992aa648a340abc390f8966db869 (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: https://origsvn.digium.com/svn/asterisk/trunk@81631 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk')
-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 */ |