Comment 12 for bug 868550

Revision history for this message
Arnd Bergmann (arnd-arndb) wrote :

I wonder if this simpler patch would also work. The header files in question are all for kernel modules that are shared with BSD or other operating systems. However, we know that when we are exporting the header files for user space that they will be used on a linux system, so we can simply replace any "#ifdef __linux__" with unconditional code. When building the kernel, there is no problem anyway since we know that we are building the kernel and even if the toolchain does not define __linux__, we can pass it as extra CFLAGS.