I'm working on Kext which should have access to struct proc->p_pid
field. The problem is the structure is defined in XNU sources only, so I faced incomplete definition of type 'struct proc'
error during compilation.
From my point of view, to include XNU headers into my own project is a bad smelling solution, but what is the alternative way? Is it to copy and to paste the structure into my own code?