diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-07-23 16:05:03 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-07-23 16:05:03 +0000 |
commit | fb758229aba9757ceb06b3de8a72f3a761d1a651 (patch) | |
tree | 36f10416500fbf8a5ffa0c7fe7957e1d761edf22 /libiberty/strtoul.c | |
parent | 68e6b6e1c0f5ae5cf5a338a063be8bd52742487e (diff) | |
download | gcc-fb758229aba9757ceb06b3de8a72f3a761d1a651.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35199 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty/strtoul.c')
-rw-r--r-- | libiberty/strtoul.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libiberty/strtoul.c b/libiberty/strtoul.c index 2ec32043e6b..59d428cd49e 100644 --- a/libiberty/strtoul.c +++ b/libiberty/strtoul.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 |