5.5. Linux-Libc-Headers-

The Linux-Libc-Headers package contains the “sanitized” kernel headers.

Approximate build time: less than 0.1 SBU
Required disk space: 27 MB

5.5.1. Installation of Linux-Libc-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 Application Programming Interface (API) stable version of the Linux headers.

Install the header files:

cp -Rv include/asm-i386 /tools/include/asm
cp -Rv include/linux /tools/include

If your architecture is not i386 (compatible), adjust the first command accordingly.

Details on this package are located in Section 6.7.2, “Contents of Linux-Libc-Headers.”