I am using the RedHat 9.2 to write program.
But when I include a timer.h file of the /usr/include/linux, it always has error.
eg
#vi t.c
///////////////////////////////////
#include <linux/timer.h>
#include <stdio.h>
int main()
{
printf("test");
return 0;
}
//////////////////////////////////////
#gcc -DLINUX -O2 -march=i486 -Wall -I/usr/include -o t.o -c t.c
lots of warning and error occur about the timer.h
BUT
when I use the RedHat 7.0
it still has problem but I use the other path
#gcc -DLINUX -O2 -m486 -Wall -I/usr/src/linux/include -c t.c
there is no problem
is it the compiling problem in RedHat 9.2?
or is it the usr/include/linux I can't use?
Can anyone help me to solve this problem?
THank Lots
thx