We need this to get sys-process/lsof under Darwin. Here are the latest xnu sources (tarball and commit, respectively): https://opensource.apple.com/tarballs/xnu/xnu-3789.51.2.tar.gz https://github.com/opensource-apple/xnu/commit/dc0628e187c3148723505cf1f1d35bb948d3195b Headers can be found under bsd/sys.
This is slightly odd, because the kernel headers should match the running kernel, or do I misunderstand this?
Not sure about Darwin, but for the Linux kernel I've learned that the kernel-headers don't need to match the running kernel version. Found this one now: https://wiki.gentoo.org/wiki/Linux-headers
As long as kernel is reverse-compatible (which is true for most kernels, including Darwin), one can use newer headers with an older kernel.
I've added this package at some point, and decided to drop it again, the need to come from Xcode.