summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/xstrtoimax.c2
-rw-r--r--lib/xstrtoumax.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/xstrtoimax.c b/lib/xstrtoimax.c
index 8937862c2..f60a8bbab 100644
--- a/lib/xstrtoimax.c
+++ b/lib/xstrtoimax.c
@@ -23,6 +23,8 @@
#if HAVE_INTTYPES_H
# include <inttypes.h>
+#elif HAVE_STDINT_H
+# include <stdint.h>
#endif
#define __strtol strtoimax
diff --git a/lib/xstrtoumax.c b/lib/xstrtoumax.c
index 04d7cf98a..8e1c5b807 100644
--- a/lib/xstrtoumax.c
+++ b/lib/xstrtoumax.c
@@ -23,6 +23,8 @@
#if HAVE_INTTYPES_H
# include <inttypes.h>
+#elif HAVE_STDINT_H
+# include <stdint.h>
#endif
#define __strtol strtoumax