aboutsummaryrefslogtreecommitdiff
path: root/stdlib/strtol.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@lucent.com>1995-07-30 18:48:43 +0000
committerJim Meyering <meyering@lucent.com>1995-07-30 18:48:43 +0000
commit6c685ebb794b8d079a47a985260291db59069116 (patch)
tree8b912bf4fd0f983b6a3b9d24e4ad30494c544ca1 /stdlib/strtol.c
parent507fcb753b2bc9351305abfdb4e5ec2d663bfc87 (diff)
downloadglibc-6c685ebb794b8d079a47a985260291db59069116.zip
glibc-6c685ebb794b8d079a47a985260291db59069116.tar.gz
glibc-6c685ebb794b8d079a47a985260291db59069116.tar.bz2
[_LIBC]: Define HAVE_LIMITS_H. [HAVE_LIMITS_H]: Include it.
Diffstat (limited to 'stdlib/strtol.c')
-rw-r--r--stdlib/strtol.c9
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>