Path: utzoo!attcan!uunet!snorkelwacker!apple!usc!rutgers!umn-d-ub!cs.umn.edu!sctc.com!bright From: bright@sctc.com (Dave Bright) Newsgroups: comp.unix.i386 Subject: Re: compile errors with /usr/include/sys/types.h Message-ID: <1990Mar5.150312.15889@sctc.com> Date: 5 Mar 90 15:03:12 GMT References: <1990Mar1.022620.23226@ice9.uucp> Distribution: na Organization: Secure Computing Technology Corporation Lines: 24 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? Since I've run into this while compiling several X clients under ESIX, I thought it worthwhile to post a response. The problem is that one of the X11 include files (I don't recall which) includes sys/types.h. When the program includes sys/types.h explicitly, the typedefs die due to redefinition. My solution so far has been to just comment out the include in the program, but I've been thinking of modifying the include file to allow multiple inclusions; this might save time in the long run. -- David A. Bright Secure Computing Technology Corporation bright@SCTC.COM (work) 1210 West County Road E, Suite 100 dab@Bright.MN.ORG (home) Arden Hills, MN 55112