]> git.eshelyaron.com Git - emacs.git/commitdiff
* sysdep.c (ULLONG_MAX): Define if not already defined.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 7 Jul 2012 03:06:00 +0000 (20:06 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 7 Jul 2012 03:06:00 +0000 (20:06 -0700)
Fixes: debbugs:11781
src/ChangeLog
src/sysdep.c

index 47110ca04f1e80b6e462976ab4feed522bbbcf31..9b76d7952494d5abfeffe87092fd4c42f42f1c13 100644 (file)
@@ -1,5 +1,7 @@
 2012-07-07  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * sysdep.c (ULLONG_MAX): Define if not already defined (Bug#11781).
+
        * sysdep.c (list_system_processes): Port to NetBSD-current (Bug#11797).
 
        Do not require float-time's arg to fit in time_t (Bug#11825).
index cf646768af5dd41a39ae22706ebb433265909e53..475c977044b8bcfed0dd4b84fa0557e2cec76f92 100644 (file)
@@ -108,6 +108,11 @@ static int emacs_set_tty (int, struct emacs_tty *, int);
 static _Noreturn void croak (char *);
 #endif
 
+/* ULLONG_MAX is missing on Red Hat Linux 7.3; see Bug#11781.  */
+#ifndef ULLONG_MAX
+#define ULLONG_MAX TYPE_MAXIMUM (unsigned long long int)
+#endif
+
 /* Declare here, including term.h is problematic on some systems.  */
 extern void tputs (const char *, int, int (*)(int));