summaryrefslogtreecommitdiff
path: root/devel/bmake/files/make.h
diff options
context:
space:
mode:
Diffstat (limited to 'devel/bmake/files/make.h')
-rw-r--r--devel/bmake/files/make.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/devel/bmake/files/make.h b/devel/bmake/files/make.h
index ad85163696f..856b3dfa2a0 100644
--- a/devel/bmake/files/make.h
+++ b/devel/bmake/files/make.h
@@ -1,4 +1,4 @@
-/* $NetBSD: make.h,v 1.1.1.5 2010/04/20 13:32:32 joerg Exp $ */
+/* $NetBSD: make.h,v 1.1.1.6 2010/04/24 20:33:59 joerg Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -411,6 +411,13 @@ extern Lst defIncPath; /* The default include path. */
extern char *progname; /* The program name */
extern char *makeDependfile; /* .depend */
+/*
+ * We cannot vfork() in a child of vfork().
+ * Most systems do not enforce this but some do.
+ */
+#define vFork() ((getpid() == myPid) ? vfork() : fork())
+extern pid_t myPid;
+
#define MAKEFLAGS ".MAKEFLAGS"
#define MAKEOVERRIDES ".MAKEOVERRIDES"
#define MAKE_JOB_PREFIX ".MAKE.JOB.PREFIX" /* prefix for job target output */
@@ -466,6 +473,7 @@ void Check_Cwd(const char **);
void PrintOnError(GNode *, const char *);
void Main_ExportMAKEFLAGS(Boolean);
Boolean Main_SetObjdir(const char *);
+int mkTempFile(const char *, char **);
#ifdef __GNUC__
#define UNCONST(ptr) ({ \