On 10/18/06, penguin-newbie@xxxxxxxxxxxxxxxxxxx <penguin-newbie@xxxxxxxxxxxxxxxxxxx> wrote:
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.
Use kbuild. See http://tldp.org/LDP/lkmpg/2.6/html/index.html Jinesh. -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/