aboutsummaryrefslogtreecommitdiff
path: root/libiberty/pexecute.c
diff options
context:
space:
mode:
Diffstat (limited to 'libiberty/pexecute.c')
-rw-r--r--libiberty/pexecute.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/libiberty/pexecute.c b/libiberty/pexecute.c
index 206db58ee81..0ead5669acd 100644
--- a/libiberty/pexecute.c
+++ b/libiberty/pexecute.c
@@ -26,9 +26,7 @@ Boston, MA 02111-1307, USA. */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
-#ifdef IN_GCC
-#include "system.h"
-#else
+
#include <stdio.h>
#include <errno.h>
#ifdef HAVE_UNISTD_H
@@ -38,7 +36,6 @@ Boston, MA 02111-1307, USA. */
#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h>
#endif
-#endif
#ifdef vfork /* Autoconf may define this to fork for us. */
# define VFORK_STRING "fork"
@@ -609,9 +606,6 @@ pfinish ()
extern int execv ();
extern int execvp ();
-#ifdef IN_GCC
-extern char * my_strerror PROTO ((int));
-#endif
int
pexecute (program, argv, this_pname, temp_base, errmsg_fmt, errmsg_arg, flags)
@@ -703,11 +697,7 @@ pexecute (program, argv, this_pname, temp_base, errmsg_fmt, errmsg_arg, flags)
/* Note: Calling fprintf and exit here doesn't seem right for vfork. */
fprintf (stderr, "%s: ", this_pname);
fprintf (stderr, install_error_msg, program);
-#ifdef IN_GCC
- fprintf (stderr, ": %s\n", my_strerror (errno));
-#else
fprintf (stderr, ": %s\n", xstrerror (errno));
-#endif
exit (-1);
/* NOTREACHED */
return 0;