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
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com

Reply via email to