add __vfork14() compensation by including <unistd.h> as inspired by our
in-tree gcc. make this special activity conditional on __NetBSD__.
This commit is contained in:
parent
7485d4735b
commit
17130ff0d5
7
gnu/dist/gcc/pexecute.c
vendored
7
gnu/dist/gcc/pexecute.c
vendored
@ -29,6 +29,9 @@ Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
#ifdef __NetBSD__
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifdef IN_GCC
|
||||
#include "gansidecl.h"
|
||||
@ -602,7 +605,11 @@ pexecute (program, argv, this_pname, temp_base, errmsg_fmt, errmsg_arg, flags)
|
||||
#else
|
||||
fprintf (stderr, ": %s\n", xstrerror (errno));
|
||||
#endif
|
||||
#ifdef __NetBSD__
|
||||
_exit (-1);
|
||||
#else
|
||||
exit (-1);
|
||||
#endif
|
||||
/* NOTREACHED */
|
||||
return 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user