diff options
author | Jeff Law <law@redhat.com> | 2000-07-23 16:05:33 +0000 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 2000-07-23 16:05:33 +0000 |
commit | c8f39e9fc341d78a4fde48a82456b8e06f254163 (patch) | |
tree | 34cb536ad253df1c426cb6ca2ad63a2771892206 /libiberty/strtol.c | |
parent | 4a3b753e99b91cb5f18f483d5637987434344850 (diff) | |
download | gdb-c8f39e9fc341d78a4fde48a82456b8e06f254163.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.
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 5467cc3e2e9..b4c66c403f7 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 |