I have tried to add a new system call. I am using Fedora linux 6 ..Kernel 126.96.36.199
I followed the document http://nd.edu/~ablaich/system_call_i...n_a_blaich.txt
to add a new system call.
During compilation I got the following error. I have place my system call code in ~/ipc/ which is also as follows. Does any body has idea about this error.
In file included from include/linux/shm.h:4,
include/linux/ipc.h:59: error: expected specifier-qualifier-list before ‘spinlock_t’
ipc/mycall.c:3:21: error: inttypes.h: No such file or directory
make: *** [ipc/mycall.o] Error 1
make: *** [ipc] Error 2
/*System call code*/
asmlinkage long sys_mycall(int i)