[rsyslog] omfile does not compile on 32-bit platforms in 5.3.5
Kenneth Marshall
ktm at rice.edu
Wed Dec 2 15:03:07 CET 2009
Hi Rainier,
The version of omfile.c does not compile/run on 32-bit
systems anymore. Here is the problem function:
static uint64 clockFileAccess = 0;
/* and the "tick" function */
static inline uint64
getClockFileAccess(void)
{
return ATOMIC_INC_AND_FETCH(clockFileAccess);
}
You cannot perform an atomic operation on an 8 byte value
on a 32-bit system. Would it be possible to use the atomic
operations on two 4 byte values to allow this code to work
on 32-bit systems as well?
Regards,
Ken
More information about the rsyslog
mailing list