From 3b58c09931cc776c30aef89f0bac7f6fdca34aca Mon Sep 17 00:00:00 2001 From: Michael Sokolov Date: Sun, 23 Jul 2000 16:05:03 +0000 Subject: 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 --- libiberty/pexecute.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libiberty/pexecute.c') diff --git a/libiberty/pexecute.c b/libiberty/pexecute.c index f1aea9db7f0..4a1970d5309 100644 --- a/libiberty/pexecute.c +++ b/libiberty/pexecute.c @@ -29,6 +29,9 @@ Boston, MA 02111-1307, USA. */ #include #include +#ifdef NEED_DECLARATION_ERRNO +extern int errno; +#endif #ifdef HAVE_STRING_H #include #endif -- cgit v1.2.1