diff options
-rw-r--r-- | lib/xstrtoimax.c | 2 | ||||
-rw-r--r-- | lib/xstrtoumax.c | 2 |
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 |