summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2002-05-31 13:10:38 +0000
committertjr <tjr@FreeBSD.org>2002-05-31 13:10:38 +0000
commitc828fbddc6883504c05fa84e43837509e1f4a2b5 (patch)
tree48d69810dc40b0051a13976b8debee2f8820e365 /bin
parent5250eaebaca3cf92c4038b167f5ce0d6cf722541 (diff)
downloadFreeBSD-src-c828fbddc6883504c05fa84e43837509e1f4a2b5.zip
FreeBSD-src-c828fbddc6883504c05fa84e43837509e1f4a2b5.tar.gz
#if JOBS around a job control-related statement to allow compilation with
job control disabled.
Diffstat (limited to 'bin')
-rw-r--r--bin/sh/jobs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/sh/jobs.c b/bin/sh/jobs.c
index 1fdb933..fc92e65 100644
--- a/bin/sh/jobs.c
+++ b/bin/sh/jobs.c
@@ -529,7 +529,9 @@ makejob(union node *node __unused, int nprocs)
INTOFF;
if (njobs == 0) {
jobtab = ckmalloc(4 * sizeof jobtab[0]);
+#if JOBS
jobmru = NULL;
+#endif
} else {
jp = ckmalloc((njobs + 4) * sizeof jobtab[0]);
memcpy(jp, jobtab, njobs * sizeof jp[0]);
OpenPOWER on IntegriCloud