Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!brutus.cs.uiuc.edu!psuvax1!rutgers!mcdchg!laidbak!daveb From: daveb@i88.isc.com (David G. Burton) Newsgroups: comp.unix.i386 Subject: Re: compile errors with /usr/include/sys/types.h Message-ID: <1990Mar7.164311.3549@i88.isc.com> Date: 7 Mar 90 16:43:11 GMT References: <1990Mar1.022620.23226@ice9.uucp> <6730@turnkey.TCC.COM> Sender: usenet@i88.isc.com (Usenet News) Distribution: na Organization: INTERACTIVE Systems Corporation, Naperville, IL Lines: 30 In article <1990Mar1.022620.23226@ice9.uucp> bgh@ice9.uucp (barry hannigan) writes: | [ lines that cause syntax errors] In article <6730@turnkey.TCC.COM> jackv@turnkey.TCC.COM replies: |Barry, there is nothing wrong with types.h, what is actually happening is |that it is being included twice and the second pass through this stuff by |the preprocessor causes the syntax error. You need to search through the |include files, find the second inclusion and remove it. I have found the |X source to be notorious for this problem. I have ``frequently'' run into this problem with when porting software to my machine. Rather than modifying the various sources to remove redundant #include's, I simply modify as in: $ cat /usr/include/sys/types.h #ifndef SYS_TYPES_H #define SYS_TYPES_H ... [ all of header file ] ... #endif /* SYS_TYPES_H */ $ Once this modification is made, no further problems due to multiple inclusion of will occur. Disclaimer: I don't speak for ISC; they don't speak for me. -- Dave Burton uunet!ism780c!laidbak!daveb