Hello. I could compile with the following modifications. Adding -I/usr/src/kernels/2.6.18-1.2798.fc6-i686/include/ to gcc, and using #define __KERNEL__ #include <linux/unistd.h> #undef __KERNEL__ instead of directly using #include <linux/unistd.h> I don't know it's a correct way. Thanks. -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/