Improper headers

From: Shourya Sarcar (sarcar@vsnl.com)
Date: Sun Feb 27 2000 - 10:18:11 EST


The header files in /usr/include and /usr/include/linux seem o be rather
inconsistent. The following code spews errors.

test.c

#include <time.h>
#include <linux/time.h>

int main() {}

gcc -Wall test.c . Lots of errors.

One bypass would be to use any 1 of the headers but a problem is the
following case :

#include <foo.h> /* This in turn includes <time.h> */
#include <moo.h> /* This in turn includes <linux/time.h> */

Any workarounds ??

Shourya

 --
_______________________________________________________________
Shourya Sarcar <sarcar@vsnl.com> <Tel:91-033-4710477>
Department of Computer Science and Engineering
Jadavpur University Calcutta, India 700 032

All the world's a stage..
And I am acting tonight
C - the difference : http://www.eskimo.com/~scs/C-faq/top.html

--
_______________________________________________________________
Shourya Sarcar 	       <sarcar@vsnl.com>  <Tel:91-033-4710477>
Department of Computer Science and Engineering
Jadavpur University    Calcutta, India 700 032

All the world's a stage.. And I am acting tonight C - the difference : http://www.eskimo.com/~scs/C-faq/top.html

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Feb 29 2000 - 21:00:16 EST