Newbie rtfm question: headerfiles

From: Larry Colen - Open Source Group (lrc@opensourcegroup.com)
Date: Tue Apr 11 2000 - 14:51:01 EST


I'm currently going through headerfile hell. Is there any sort of document
which describes what header files conflict with each other, and which ones
require others to be included first?

For example I'm fighting with compiler errors like:
In file included from /usr/include/stdio.h:40,
                 from rsbac/clulog/clulog.c:27:
/usr/include/bits/types.h:95: warning: `__NFDBITS' redefined
/u/home/lrc/clunix/linux/include/linux/posix_types.h:22: warning: this is the location of the previous definition
/usr/include/bits/types.h:97: warning: `__FDMASK' redefined
/u/home/lrc/clunix/linux/include/linux/posix_types.h:34: warning: this is the location of the previous definition
In file included from rsbac/clulog/clulog.c:27:
/usr/include/stdio.h:473: warning: redefinition of `off_t'
/u/home/lrc/clunix/linux/include/linux/types.h:14: warning: `off_t' previously declared here

Am I doing something blatantly stupid? Should I not be including stdio.h
from kernel space?

    Larry

-- 
     Larry Colen				 lrc@opensourcegroup.com
www.opensourcegroup.com               The open source solutions integrator

- 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 : Sat Apr 15 2000 - 21:00:16 EST