Cnews on System V/AT: "expression causes compiler loop"

Mike Mitchell mdm at cocktrice.UUCP
Mon Nov 20 01:43:53 AEST 1989


In article <3056 at splut.conmicro.com>, jay at splut.conmicro.com (Jay "you ignorant splut!" Maynard) writes:
> 
> I'm trying to install C news, at the patchlevel 7/13 Nov 1989 level, on
> my System V/AT 2.4 system. Trying to compile relay/hdrdefs.c, I get:
> 
> The relevant code is:
> #ifndef offsetof
> #define offsetof(type, mem) ((char *)&((type *)NULL)->mem - (char *)NULL)
> #endif
> 
> Any ideas about how to simplify this one? Am I the only person to run
> into this?
> 

#ifndef	offsetof
#define offsetof(type, mem) (int)&(((type *)0)->(mem))
#endif

Also be sure that you compile relaynews large model. It has the tendancy
to blow up on really huge incoming batches in small model. Use the dbz
routines in the contribution directory.

Cnews operates fairly well on one of these Uport '286 things.

-- 
Mike Mitchell                   BELL    H (505) 471-7639 W (505) 473-4482
2020 Calle Lorca #43            ARPA    mdm at cocktrice.UUCP
Santa Fe, NM 87505              UUCP    ...!uunet!dmk3b1!cocktrice!mdm



More information about the Comp.unix.microport mailing list