diff options
author | Rainer Gerhards <rger@ltvm.intern.adiscon.com> | 2010-04-29 11:56:33 +0200 |
---|---|---|
committer | Rainer Gerhards <rger@ltvm.intern.adiscon.com> | 2010-04-29 11:56:33 +0200 |
commit | c26f830825775df7dd30eb2582626ad5db05f72f (patch) | |
tree | e062fe20b2cc0e1d7eafb5f6aac16e388e4fff64 | |
parent | 23c7a914b27ee0874208e0b9b70e4a13145f4ed0 (diff) | |
download | rsyslog-c26f830825775df7dd30eb2582626ad5db05f72f.tar.gz rsyslog-c26f830825775df7dd30eb2582626ad5db05f72f.tar.xz rsyslog-c26f830825775df7dd30eb2582626ad5db05f72f.zip |
fixed recent regression: did not compile on systems with atomic instructions
-rw-r--r-- | runtime/atomic.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/atomic.h b/runtime/atomic.h index 30478440..d8cdff7b 100644 --- a/runtime/atomic.h +++ b/runtime/atomic.h @@ -39,7 +39,7 @@ * They simply came in too late. -- rgerhards, 2008-04-02 */ #ifdef HAVE_ATOMIC_BUILTINS -# define ATOMIC_SUB(data, val) __sync_fetch_and_sub(data, val) +# define ATOMIC_SUB(data, val, phlpmut) __sync_fetch_and_sub(data, val) # define ATOMIC_ADD(data, val) __sync_fetch_and_add(&(data), val) # define ATOMIC_INC(data, phlpmut) ((void) __sync_fetch_and_add(data, 1)) # define ATOMIC_INC_AND_FETCH(data) __sync_fetch_and_add(&(data), 1) |