Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!brutus.cs.uiuc.edu!psuvax1!ukma!uflorida!novavax!ankh!megasys!pax From: pax@megasys.COM (Garry M. Paxinos) Newsgroups: comp.unix.i386 Subject: Re: compile errors with /usr/include/sys/types.h Message-ID: <194@megasys.COM> Date: 7 Mar 90 16:08:12 GMT References: <1990Mar1.022620.23226@ice9.uucp> Distribution: na Organization: Megasystems, Inc. Delray Beach, FL Lines: 29 In-reply-to: bgh@ice9.uucp's message of 1 Mar 90 02:26:20 GMT In article <1990Mar1.022620.23226@ice9.uucp> bgh@ice9.uucp (barry hannigan) writes: the following lines are excerpted from /usr/include/sys/types.h in ISC 2.0.2 typedef struct { int r[1]; } * physadr; typedef char * caddr_t; /* ? type */ typedef char * faddr_t; /* same as caddr_t for 8086/386 */ they cause syntax errors when used. the program being compiled is Xloadimage, patchlevel 3. any ideas? Yes, the problem is sys/types.h is being include more than once (generaly inside the X11/*.h files..) What I've done is to #ifdef the sys/*.h files so they only get parsed once. ie : #ifndef _h_sys_types #define _h_sys_types <... standard text of sys/types.h ...> #endif /* _h_sys_types */ -- Internet : work - pax@megasys.com home - pax@ankh.ftl.fl.us USNail : Megasystems, Inc. 2055 South Congress Ave, Delray Beach, FL 33445 UUCP : {gatech!uflorida!novavax!ankh, mthvax, attmail}!megasys!pax Voice : 407-243-2405 Data: 407-243-2407 Fax: 407-243-2408 Telex: 156281499