hi , hey i m compiling my soucre code. but its giving me error... in header files... e.g. i have included the header file /usr/include/linux/sched.h
e.g. #include <linux/sched.h>
[root@localhost ext2]# cc acl.c In file included from /usr/include/linux/sched.h:14, from acl.c:11: /usr/include/linux/timex.h:173: field `time' has incomplete type In file included from /usr/include/linux/sched.h:81, from acl.c:11: /usr/include/linux/timer.h:32: field `vec' has incomplete type /usr/include/linux/timer.h:37: field `vec' has incomplete type /usr/include/linux/timer.h:63: field `list' has incomplete type
so do have i to change "/usr/include/linux/timex.h " for this type of ewrror... or any other settings i have to done.. ?...
take care Deepali ------------------------------------------------- Click here to find your dream partner! Know more at http://www.bharatmatrimony.com/partner/sify.html
Sify Power mail- a Premium Service from Sify Mail! know more at http://mail.sify.com
On Sun, 28 Sep 2003, Deepali Naik wrote:
[root@localhost ext2]# cc acl.c In file included from /usr/include/linux/sched.h:14, from acl.c:11: /usr/include/linux/timex.h:173: field `time' has incomplete type
I think you have to include <linux/time.h> before you include these files, but I cannot be sure. Try putting a #include <linux/time.h> before your #include <linux/sched.h> and see if it makes a difference.
--- Deepali Naik dipsnaik@sify.com wrote:
/usr/include/linux/timer.h:32: field `vec' has incomplete type
[SNIP]
That goes on to show that u have not included the needed files.
so do have i to change "/usr/include/linux/timex.h "
[SNIP]
You may not change anything in the standard header files. Just include proper header files in your source. Hmmm for that timeval error you have to include <sys/time.h> file. Just check whether that error is removed.
take care
[SNIP]
You also take care :)
Deepali
[SNIP]
Tapeshwar
__________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com