aboutsummaryrefslogtreecommitdiff
path: root/libiberty/strtol.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2000-07-23 16:05:33 +0000
committerJeff Law <law@redhat.com>2000-07-23 16:05:33 +0000
commit7d3ffcaf8540b6a29edc9d24ea1fe3bddbd96004 (patch)
tree49049fbea32d1f62ae059e3ce9784f83f463cc78 /libiberty/strtol.c
parentb123325783561d820960dea56f33de3169e84410 (diff)
downloadgdb-7d3ffcaf8540b6a29edc9d24ea1fe3bddbd96004.zip
gdb-7d3ffcaf8540b6a29edc9d24ea1fe3bddbd96004.tar.gz
gdb-7d3ffcaf8540b6a29edc9d24ea1fe3bddbd96004.tar.bz2
* aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
* configure.in (libiberty_AC_DECLARE_ERRNO): Add check. * configure, config.in: Regenerate. * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
Diffstat (limited to 'libiberty/strtol.c')
-rw-r--r--libiberty/strtol.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libiberty/strtol.c b/libiberty/strtol.c
index 5467cc3..b4c66c4 100644
--- a/libiberty/strtol.c
+++ b/libiberty/strtol.c
@@ -31,6 +31,9 @@
#include <limits.h>
#include <ctype.h>
#include <errno.h>
+#ifdef NEED_DECLARATION_ERRNO
+extern int errno;
+#endif
#if 0
#include <stdlib.h>
#endif