Bennett Todd <bet@rahul.net> writes:
localtime.c:331: warning: comparison is always false due to limited range of data type
This is due to what I've always considered to be a bug in GCC. See, for example, <http://lists.gnu.org/archive/html/bug-gnulib/2005-06/msg00091.html>. I've never gotten around to fixing it, but in the meantime I would ignore that message.
(If so then a #ifdef or two should fix the problem on systems based on a moderately modern glibc,
There's no easy way to use #ifdefs, since the values in question (e.g., the number of bits in a time_t) can't be computed by the preprocessor.
-DLLONG_MAX should be added to the list of CFLAGS adjustments in the Makefile.)
Hmm, your compiler has long long and INT64_MAX, but not LLONG_MAX? Which compiler is this? Which header defines INT64_MAX? Does your compiler have stdint.h? If so, does -DHAVE_STDINT_H work? It's what the Makefile recommends.