Subject: compilation failure: `ULLONG_MAX' undeclared

From: Dan Nicolaescu <[email-masked]>
Date: Mon, 25 Jun 2012 14:12:23 -0400

On an ancient machine (don't ask) building the trunk fails:

gcc -c  -Demacs -DHAVE_CONFIG_H  -I. -I/tmp/emacs/src -I../lib -I/tmp/emacs/src/../lib   -I/usr/X11R6/include            -MMD -MF deps/sysdep.d -MP     -g -O2 /tmp/emacs/src/sysdep.c
/tmp/emacs/src/sysdep.c: In function `time_from_jiffies':
/tmp/emacs/src/sysdep.c:2587: `ULLONG_MAX' undeclared (first use in this function)
/tmp/emacs/src/sysdep.c:2587: (Each undeclared identifier is reported only once
/tmp/emacs/src/sysdep.c:2587: for each function it appears in.)
make[1]: *** [sysdep.o] Error 1

$ cat /etc/redhat-release 
Red Hat Linux release 7.3 (Valhalla)

$ rpm -q glibc-devel
glibc-devel-2.2.5-44

$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113)