From 4ed77eecc813a338841417814120f4548dd351e2 Mon Sep 17 00:00:00 2001 From: ghazi Date: Mon, 14 Dec 1998 07:01:03 +0000 Subject: * 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 --- libiberty/pexecute.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'libiberty/pexecute.c') 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 #include #ifdef HAVE_UNISTD_H @@ -38,7 +36,6 @@ Boston, MA 02111-1307, USA. */ #ifdef HAVE_SYS_WAIT_H #include #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; -- cgit v1.2.3