hi ,
i was trying to compile the file syscall.c available with the freebsd itself in the folder /usr/examples/kld/module (i guess)..
when i tried to compile the file i got the following error :
i tried even to comment out the above lines giving error and i changed the permissions too using root account but still i am not able to edit the systm.h file even though it shows that after changing it has all permission for root.
Please help e in removing this error.
thanks in advance..
i was trying to compile the file syscall.c available with the freebsd itself in the folder /usr/examples/kld/module (i guess)..
when i tried to compile the file i got the following error :
Code:
%gcc -o syscall syscall.c
In file included from syscall.c:35:
/usr/include/sys/systm.h:278: error: syntax error before "splbio"
/usr/include/sys/systm.h:279: error: syntax error before "splcam"
/usr/include/sys/systm.h:280: error: syntax error before "splclock"
/usr/include/sys/systm.h:281: error: syntax error before "splhigh"
/usr/include/sys/systm.h:282: error: syntax error before "splimp"
/usr/include/sys/systm.h:283: error: syntax error before "splnet"
/usr/include/sys/systm.h:284: error: syntax error before "splsoftcam"
/usr/include/sys/systm.h:285: error: syntax error before "splsoftclock"
/usr/include/sys/systm.h:286: error: syntax error before "splsofttty"
/usr/include/sys/systm.h:287: error: syntax error before "splsoftvm"
/usr/include/sys/systm.h:288: error: syntax error before "splsofttq"
/usr/include/sys/systm.h:289: error: syntax error before "splstatclock"
/usr/include/sys/systm.h:290: error: syntax error before "spltty"
/usr/include/sys/systm.h:291: error: syntax error before "splvm"
/usr/include/sys/systm.h:292: error: syntax error before "ipl"
In file included from syscall.c:35:
/usr/include/sys/systm.h:38:1: unterminated #ifndef
%
Please help e in removing this error.
thanks in advance..