=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/make/job.c,v retrieving revision 1.152 retrieving revision 1.153 diff -c -r1.152 -r1.153 *** src/usr.bin/make/job.c 2020/01/13 15:12:58 1.152 --- src/usr.bin/make/job.c 2020/01/13 15:19:04 1.153 *************** *** 1,4 **** ! /* $OpenBSD: job.c,v 1.152 2020/01/13 15:12:58 espie Exp $ */ /* $NetBSD: job.c,v 1.16 1996/11/06 17:59:08 christos Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: job.c,v 1.153 2020/01/13 15:19:04 espie Exp $ */ /* $NetBSD: job.c,v 1.16 1996/11/06 17:59:08 christos Exp $ */ /* *************** *** 131,136 **** --- 131,137 ---- static Job *heldJobs; /* Jobs not running yet because of expensive */ static pid_t mypid; /* Used for printing debugging messages */ static Job *extra_job; /* Needed for .INTERRUPT */ + static bool compatMode; /* If we're running with compat.c don't call Make_Update */ static volatile sig_atomic_t got_fatal; *************** *** 541,547 **** * non-zero status that we shouldn't ignore, we call * Make_Update to update the parents. */ job->node->built_status = REBUILT; ! Make_Update(job->node); } if (job->flags & JOB_KEEPERROR) { job->next = errorJobs; --- 542,549 ---- * non-zero status that we shouldn't ignore, we call * Make_Update to update the parents. */ job->node->built_status = REBUILT; ! if (!compatMode) ! Make_Update(job->node); } if (job->flags & JOB_KEEPERROR) { job->next = errorJobs; *************** *** 871,877 **** } void ! Job_Init(int maxJobs) { Job *j; int i; --- 873,879 ---- } void ! Job_Init(int maxJobs, bool compat) { Job *j; int i; *************** *** 881,886 **** --- 883,889 ---- errorJobs = NULL; availableJobs = NULL; sequential = maxJobs == 1; + compatMode = compat; /* we allocate n+1 jobs, since we may need an extra job for * running .INTERRUPT. */