diff options
author | Jim Meyering <meyering@lucent.com> | 1995-07-30 18:48:43 +0000 |
---|---|---|
committer | Jim Meyering <meyering@lucent.com> | 1995-07-30 18:48:43 +0000 |
commit | 6c685ebb794b8d079a47a985260291db59069116 (patch) | |
tree | 8b912bf4fd0f983b6a3b9d24e4ad30494c544ca1 /stdlib | |
parent | 507fcb753b2bc9351305abfdb4e5ec2d663bfc87 (diff) | |
download | glibc-6c685ebb794b8d079a47a985260291db59069116.zip glibc-6c685ebb794b8d079a47a985260291db59069116.tar.gz glibc-6c685ebb794b8d079a47a985260291db59069116.tar.bz2 |
[_LIBC]: Define HAVE_LIMITS_H. [HAVE_LIMITS_H]: Include it.
Diffstat (limited to 'stdlib')
-rw-r--r-- | stdlib/strtol.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/stdlib/strtol.c b/stdlib/strtol.c index 42f7f24..1d63bbe 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 <ctype.h> #include <errno.h> -#include <limits.h> +#ifndef errno +extern int errno; +#endif + +#if HAVE_LIMITS_H +# include <limits.h> +#endif #ifdef STDC_HEADERS # include <stddef.h> |