From 6c685ebb794b8d079a47a985260291db59069116 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 30 Jul 1995 18:48:43 +0000 Subject: [_LIBC]: Define HAVE_LIMITS_H. [HAVE_LIMITS_H]: Include it. --- stdlib/strtol.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'stdlib') diff --git a/stdlib/strtol.c b/stdlib/strtol.c index 42f7f24fe9..1d63bbeb2d 100644 --- a/stdlib/strtol.c +++ b/stdlib/strtol.c @@ -24,11 +24,18 @@ Cambridge, MA 02139, USA. */ #ifdef _LIBC # define USE_NUMBER_GROUPING # define STDC_HEADERS +# define HAVE_LIMITS_H #endif #include #include -#include +#ifndef errno +extern int errno; +#endif + +#if HAVE_LIMITS_H +# include +#endif #ifdef STDC_HEADERS # include -- cgit v1.2.3