From 400c107773bc18833385c8fc6aa10f1a66d56e99 Mon Sep 17 00:00:00 2001 From: Johnothan King Date: Mon, 7 Sep 2020 19:20:18 -0700 Subject: [PATCH] Fix compile with -D_std_malloc (re: f9c127e) (#130) src/cmd/ksh93/include/jobs.h: - The commit that removed legacy code mistakenly removed the definition of vmbusy() required for ksh to compile with -D_std_malloc. Ksh assumes vmbusy is always a macro, even when _std_malloc is defined. This commit reintroduces the _std_malloc definition of vmbusy to fix undefined reference errors. --- src/cmd/ksh93/include/jobs.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cmd/ksh93/include/jobs.h b/src/cmd/ksh93/include/jobs.h index 93e0ed3a2..e9c0e885a 100644 --- a/src/cmd/ksh93/include/jobs.h +++ b/src/cmd/ksh93/include/jobs.h @@ -120,6 +120,8 @@ extern struct jobs job; #else #define vmbusy() (vmstat(0,0)!=0) #endif +#else +#define vmbusy() 0 #endif #define job_lock() (job.in_critical++)