aboutsummaryrefslogtreecommitdiff
path: root/libiberty/pexecute.c
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1998-12-14 07:01:03 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1998-12-14 07:01:03 +0000
commit4ed77eecc813a338841417814120f4548dd351e2 (patch)
treeb348c86e9e18670eff439b3af199b2013f9faf12 /libiberty/pexecute.c
parent0687a62cc50a2adb0a09ffd14b26aa817455d25a (diff)
* choose-temp.c: Don't check IN_GCC anymore.
* floatformat.c (floatformat_from_double): Use `const', not `CONST'. * memchr.c (memchr): Likewise. * memcpy.c (memcpy): Likewise. * memmove.c (memmove): Likewise. * mkstemp.c: Don't check IN_GCC anymore. * pexecute.c: Likewise. * splay-tree.c: Likewise. * strchr.c (strchr): Use `const', not `CONST'. * strrchr.c (strrchr): Likewise. * strtol.c (strtol): Likewise. * strtoul.c (strtoul): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24307 138bc75d-0d04-0410-961f-82ee72b054a4
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;