compile errors with /usr/include/sys/types.h
Dave Bright
bright at sctc.com
Tue Mar 6 01:03:12 AEST 1990
bgh at 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; /* ?<core address> 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 at SCTC.COM (work)
1210 West County Road E, Suite 100 dab at Bright.MN.ORG (home)
Arden Hills, MN 55112
More information about the Comp.unix.i386
mailing list