summaryrefslogtreecommitdiffstats
path: root/libiberty/pexecute.c
diff options
context:
space:
mode:
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 f1aea9db7f..4a1970d530 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
OpenPOWER on IntegriCloud