diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2010-11-25 17:43:51 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2010-11-25 17:43:51 +0100 |
commit | 44300ddcb2904105e2ecd56479bf396399dcab26 (patch) | |
tree | d8a1eef882e4edd784de0a41383d4c43c5b24fd6 /tools | |
parent | bd157a7d698f420ea3a9459fc90dd930c54a5e54 (diff) | |
parent | a3c81f500a4d952ce93162a730cadee8fbc8116b (diff) | |
download | rsyslog-44300ddcb2904105e2ecd56479bf396399dcab26.tar.gz rsyslog-44300ddcb2904105e2ecd56479bf396399dcab26.tar.xz rsyslog-44300ddcb2904105e2ecd56479bf396399dcab26.zip |
Merge branch 'v5-beta' into v5-devel
Conflicts:
ChangeLog
configure.ac
doc/imfile.html
plugins/imfile/imfile.c
runtime/rsyslog.h
Diffstat (limited to 'tools')
-rw-r--r-- | tools/omfile.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/omfile.c b/tools/omfile.c index 57089cfd..78f2bf8e 100644 --- a/tools/omfile.c +++ b/tools/omfile.c @@ -98,7 +98,11 @@ static pthread_mutex_t mutClock; static inline uint64 getClockFileAccess(void) { - return ATOMIC_INC_AND_FETCH(&clockFileAccess, &mutClock); +#if HAVE_ATOMIC_BUILTINS_64BIT + return ATOMIC_INC_AND_FETCH_uint64(&clockFileAccess, &mutClock); +#else + return ATOMIC_INC_AND_FETCH_unsigned(&clockFileAccess, &mutClock); +#endif } |