summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/strtoimax.c4
-rw-r--r--lib/xstrtol.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/strtoimax.c b/lib/strtoimax.c
index 0f03ca174..23c8eb66c 100644
--- a/lib/strtoimax.c
+++ b/lib/strtoimax.c
@@ -1,5 +1,5 @@
/* Convert string representation of a number into an intmax_t value.
- Copyright 1999, 2001 Free Software Foundation, Inc.
+ Copyright 1999, 2001, 2002 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -23,6 +23,8 @@
#if HAVE_INTTYPES_H
# include <inttypes.h>
+#elif HAVE_STDINT_H
+# include <stdint.h>
#endif
#if HAVE_STDLIB_H
diff --git a/lib/xstrtol.h b/lib/xstrtol.h
index 513855f14..5d6dd8ebe 100644
--- a/lib/xstrtol.h
+++ b/lib/xstrtol.h
@@ -20,6 +20,8 @@
# if HAVE_INTTYPES_H
# include <inttypes.h> /* for uintmax_t */
+# elif HAVE_STDINT_H
+# include <stdint.h>
# endif
# ifndef PARAMS