problem with gettimeofday function
undefined reference to `gettimeofday'
the above error msg. appeared when I made : (make install) where I have changed in do_softirq function in softirq.c to compute the elapsed time, the main statements are:
struct timeval t1, t2;
gettimeofday(&t1, (void *)0); // alse gettimeofday(&t1, NULL) the same output
may be the reason is that I omitted #include<sys/time.h> and <stdio.h>, but when I added them with the default include statements, it gave me another erorr:
linux/stdio.h: No such file or directory
sys/time.h: No such file or directory
where that file contains the following include statements:
thanks for any help.