From 7d3ffcaf8540b6a29edc9d24ea1fe3bddbd96004 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Sun, 23 Jul 2000 16:05:33 +0000 Subject: * 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. --- 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 f1aea9d..4a1970d 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.1