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:
tv 1998-04-01 01:50:31 +00:00
parent 7485d4735b
commit 17130ff0d5

View File

@ -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;