diff options
author | Michael Sokolov <msokolov@ivan.Harhan.ORG> | 2000-07-23 16:05:03 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2000-07-23 10:05:03 -0600 |
commit | 3b58c09931cc776c30aef89f0bac7f6fdca34aca (patch) | |
tree | 36f10416500fbf8a5ffa0c7fe7957e1d761edf22 /libiberty/strtol.c | |
parent | 8502a100662b57e68782022751fbde893bb50213 (diff) | |
download | gcc-3b58c09931cc776c30aef89f0bac7f6fdca34aca.zip gcc-3b58c09931cc776c30aef89f0bac7f6fdca34aca.tar.gz gcc-3b58c09931cc776c30aef89f0bac7f6fdca34aca.tar.bz2 |
aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
* 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.
From-SVN: r35199
Diffstat (limited to 'libiberty/strtol.c')
-rw-r--r-- | libiberty/strtol.c | 3 |
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 |