in_pcb.h contains the definition of struct xinpcb for use by userspace applications. While it does have some sections of the file that are #ifdef _KERNEL, there are many other kernel parts that are not guarded, for example the first block of includes has kernel epoch and locking headers. My expectation is that these should not be pulled in when compiling user space code that uses the struct xinpcb.
Thanks Nick, that's a correct observation and needs to be improved. If you have a patch that is ready and tested (passes buildworld at least, but better pass tinderbox) I can push with your name as author.