1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00

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.
This commit is contained in:
Johnothan King 2020-09-07 19:20:18 -07:00 committed by GitHub
parent 6d0c4ac55f
commit 400c107773
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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++)