Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!emory!hubcap!ncrcae!nncrcae!sauron!harris From: harris@sauron.Columbia.NCR.COM (Ray Harris) Newsgroups: comp.sys.ncr Subject: Re: header file problems Keywords: header types.h Message-ID: <1991Apr12.083036.27340@nncrcae.Columbia.NCR.COM> Date: 12 Apr 91 12:30:36 GMT References: <727@uswnvg.UUCP> Organization: NCR Corp, E&M-Columbia, Columbia, SC Lines: 28 Nntp-Posting-Host: sauron In article <727@uswnvg.UUCP> rfadler@uswnvg.UUCP (Richard Fadler) writes: ->I have a Tower 450 running UnixV.3 version 030001 with the appropriate [....] ->In code that previously compiled with no problem I began seeing an error ->where an include statement that includes causes an error ->stating that on line 12 of /usr/include/sys/types.h there is a syntax ->error. It turns out that one of our own header files also includes ->/sys/types.h and if either one of the lines is commented out it compiles ->fine. [....] ->This compiles just fine our NCR 3000 running SysV.4, a Sequent running ptx, ->and a Pyramid running osx, but not on the Tower. Before the disk crashed it The V.4 header files on the System 3000 use the following construct: #ifndef _SYS_TYPES_H #define _SYS_TYPES_H Body of header file here #endif /* _SYS_TYPES_H */ This allows you to include the same include file more than once without the problem you're encountering. -- Ray.Harris@ncrcae.Columbia.NCR.COM (Ray Harris) ..!uunet!ncrlnk!ncrcae!harris ...!gatech!hubcap!ncrcae!harris