The Linux-Libc-Headers package contains the “sanitized” kernel headers.
For years it has been common practice to use “raw” kernel headers (straight from a kernel tarball) in /usr/include, but over the last few years, the kernel developers have taken a strong stance that this should not be done. This gave birth to the Linux-Libc-Headers Project, which was designed to maintain an API stable version of the Linux headers.
Add a userspace header and syscall support for the inotify feature available in newer Linux kernels:
patch -Np1 -i ../linux-libc-headers-2.6.12.0-inotify-3.patch
Install the header files:
install -dv /usr/include/asm cp -Rv include/asm-i386/* /usr/include/asm cp -Rv include/linux /usr/include
Ensure that all the headers are owned by root:
chown -Rv root:root /usr/include/{asm,linux}
Make sure the users can read the headers:
find /usr/include/{asm,linux} -type d -exec chmod -v 755 {} \; find /usr/include/{asm,linux} -type f -exec chmod -v 644 {} \;