From abdc2870f1ebbf21a1b865804c512b1ffbeebb3a Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Wed, 9 Dec 2009 16:49:07 +0100 Subject: worked around an issue where omfile failed to compile on 32 bit platforms ...under some circumstances (this smells like a gcc problem, but a simple solution was available). Thanks to Kenneth Marshall for some advice. [backported from 5.5.x branch] --- tools/omfile.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tools/omfile.c') diff --git a/tools/omfile.c b/tools/omfile.c index 13bb74ad..3a206ebf 100644 --- a/tools/omfile.c +++ b/tools/omfile.c @@ -83,7 +83,11 @@ DEFobjCurrIf(strm) * That should be sufficient (and even than, there would no really bad effect ;)). * The variable below is the global counter/clock. */ +#if HAVE_ATOMIC_BUILTINS_64BIT static uint64 clockFileAccess = 0; +#else +static unsigned clockFileAccess = 0; +#endif /* and the "tick" function */ static inline uint64 getClockFileAccess(void) -- cgit v1.2.3