summaryrefslogtreecommitdiff
path: root/make.h
diff options
context:
space:
mode:
authorSimon J. Gerraty <sjg@FreeBSD.org>2017-07-24 00:52:52 +0000
committerSimon J. Gerraty <sjg@FreeBSD.org>2017-07-24 00:52:52 +0000
commit56028c60f45b9c206f7a9b968fa2bd0af5619581 (patch)
tree8ed88420a9b8a126de1a4b62e47f1a2b20bb1cc4 /make.h
parent7ef48313e3a45ae781c4749db7eb4938f54da8cd (diff)
Import bmake-20170720vendor/NetBSD/bmake/20170720
compat.c: pass SIGINT etc onto child and wait for it to exit before we self-terminate.
Diffstat (limited to 'make.h')
-rw-r--r--make.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/make.h b/make.h
index d029db655e1b..54b655f810c2 100644
--- a/make.h
+++ b/make.h
@@ -1,4 +1,4 @@
-/* $NetBSD: make.h,v 1.102 2016/12/07 15:00:46 christos Exp $ */
+/* $NetBSD: make.h,v 1.103 2017/07/20 19:29:54 sjg Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -543,4 +543,10 @@ int cached_stat(const char *, void *);
#define PATH_MAX MAXPATHLEN
#endif
+#if defined(SYSV)
+#define KILLPG(pid, sig) kill(-(pid), (sig))
+#else
+#define KILLPG(pid, sig) killpg((pid), (sig))
+#endif
+
#endif /* _MAKE_H_ */