summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sys2.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sys2.h b/src/sys2.h
index b39ef9907..7eda8ef3a 100644
--- a/src/sys2.h
+++ b/src/sys2.h
@@ -171,6 +171,10 @@ char *alloca ();
# include <stdint.h>
#endif
+#if HAVE_INTTYPES_H
+# include <inttypes.h> /* for the definition of UINTMAX_MAX */
+#endif
+
#include <ctype.h>
/* Jim Meyering writes: