diff --git a/usr.bin/make/job.c b/usr.bin/make/job.c index 7c0457410063..554bc92373ec 100644 --- a/usr.bin/make/job.c +++ b/usr.bin/make/job.c @@ -1,4 +1,4 @@ -/* $NetBSD: job.c,v 1.169 2013/02/06 16:36:01 christos Exp $ */ +/* $NetBSD: job.c,v 1.170 2013/02/26 00:45:27 christos Exp $ */ /* * Copyright (c) 1988, 1989, 1990 The Regents of the University of California. @@ -70,14 +70,14 @@ */ #ifndef MAKE_NATIVE -static char rcsid[] = "$NetBSD: job.c,v 1.169 2013/02/06 16:36:01 christos Exp $"; +static char rcsid[] = "$NetBSD: job.c,v 1.170 2013/02/26 00:45:27 christos Exp $"; #else #include #ifndef lint #if 0 static char sccsid[] = "@(#)job.c 8.2 (Berkeley) 3/19/94"; #else -__RCSID("$NetBSD: job.c,v 1.169 2013/02/06 16:36:01 christos Exp $"); +__RCSID("$NetBSD: job.c,v 1.170 2013/02/26 00:45:27 christos Exp $"); #endif #endif /* not lint */ #endif @@ -1376,11 +1376,13 @@ JobExec(Job *job, char **argv) * we can kill it and all its descendants in one fell swoop, * by killing its process family, but not commit suicide. */ +#if defined(MAKE_NATIVE) || defined(HAVE_SETPGID) #if defined(SYSV) /* XXX: dsl - I'm sure this should be setpgrp()... */ (void)setsid(); #else (void)setpgid(0, getpid()); +#endif #endif Var_ExportVars(); diff --git a/usr.bin/make/main.c b/usr.bin/make/main.c index d41f21f6483b..48fe996e06be 100644 --- a/usr.bin/make/main.c +++ b/usr.bin/make/main.c @@ -1,4 +1,4 @@ -/* $NetBSD: main.c,v 1.208 2013/02/25 00:15:09 dholland Exp $ */ +/* $NetBSD: main.c,v 1.209 2013/02/26 00:45:27 christos Exp $ */ /* * Copyright (c) 1988, 1989, 1990, 1993 @@ -69,7 +69,7 @@ */ #ifndef MAKE_NATIVE -static char rcsid[] = "$NetBSD: main.c,v 1.208 2013/02/25 00:15:09 dholland Exp $"; +static char rcsid[] = "$NetBSD: main.c,v 1.209 2013/02/26 00:45:27 christos Exp $"; #else #include #ifndef lint @@ -81,7 +81,7 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 1989, 1990, 1993\ #if 0 static char sccsid[] = "@(#)main.c 8.3 (Berkeley) 3/19/94"; #else -__RCSID("$NetBSD: main.c,v 1.208 2013/02/25 00:15:09 dholland Exp $"); +__RCSID("$NetBSD: main.c,v 1.209 2013/02/26 00:45:27 christos Exp $"); #endif #endif /* not lint */ #endif @@ -799,7 +799,7 @@ main(int argc, char **argv) progname++; else progname = argv[0]; -#ifdef RLIMIT_NOFILE +#if defined(MAKE_NATIVE) || (defined(HAVE_SETRLIMIT) && defined(RLIMIT_NOFILE)) /* * get rid of resource limit on file descriptors */