Re: FC6: #define for _syscall? not found in /usr/include/asm/unistd.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux