mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 14:26:03 -04:00
Add a catch-all for PCPU_MD_FIELDS. While we expect this to be
used in the kernel only (by virtue of checking for _KERNEL), ports like lsof (part of gtop) cheat. It sets _KERNEL, but does not set either AIM or E500. As such, PCPU_MD_FIELDS didn't get defined and the build broke. The catch-all is to define PCPU_MD_FIELDS with a dummy integer when at the end of line we ended up without a definition for it.
This commit is contained in:
parent
f2e7477d21
commit
d5bbdb25b5
1 changed files with 7 additions and 0 deletions
|
|
@ -104,6 +104,13 @@ struct pmap;
|
|||
PCPU_MD_AIM_FIELDS \
|
||||
PCPU_MD_BOOKE_FIELDS
|
||||
#endif
|
||||
/*
|
||||
* Catch-all for ports (e.g. lsof, used by gtop)
|
||||
*/
|
||||
#ifndef PCPU_MD_FIELDS
|
||||
#define PCPU_MD_FIELDS \
|
||||
int pc_md_placeholder
|
||||
#endif
|
||||
|
||||
#define PCPUP ((struct pcpu *) powerpc_get_pcpup())
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue