I'm trying to compile this code and I keep getting these errors:
Code:
In file included from /usr/include/asm/elf.h:11,
from /usr/include/linux/elf.h:6,
from code.c:73:
/usr/include/asm/system.h:302: error: expected declaration specifiers or ‘...’ before ‘u8’
/usr/include/asm/system.h:302: error: expected declaration specifiers or ‘...’ before ‘u8’
/usr/include/asm/system.h:303: error: expected declaration specifiers or ‘...’ before ‘u16’
/usr/include/asm/system.h:303: error: expected declaration specifiers or ‘...’ before ‘u16’
/usr/include/asm/system.h:304: error: expected declaration specifiers or ‘...’ before ‘u32’
/usr/include/asm/system.h:304: error: expected declaration specifiers or ‘...’ before ‘u32’
/usr/include/asm/system.h: In function ‘cmpxchg_386’:
/usr/include/asm/system.h:311: error: too many arguments to function ‘cmpxchg_386_u8’
/usr/include/asm/system.h:313: error: too many arguments to function ‘cmpxchg_386_u16’
/usr/include/asm/system.h:315: error: too many arguments to function ‘cmpxchg_386_u32’
Could anyone help me here? I'm new to linux and C.