summaryrefslogtreecommitdiff
path: root/libiberty/pexecute.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2000-07-23 16:05:33 +0000
committerJeff Law <law@redhat.com>2000-07-23 16:05:33 +0000
commitc8f39e9fc341d78a4fde48a82456b8e06f254163 (patch)
tree34cb536ad253df1c426cb6ca2ad63a2771892206 /libiberty/pexecute.c
parent4a3b753e99b91cb5f18f483d5637987434344850 (diff)
downloadgdb-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/pexecute.c')
-rw-r--r--libiberty/pexecute.c3
1 files changed, 3 insertions, 0 deletions
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 <stdio.h>
#include <errno.h>
+#ifdef NEED_DECLARATION_ERRNO
+extern int errno;
+#endif
#ifdef HAVE_STRING_H
#include <string.h>
#endif