Xref: utzoo news.software.b:3579 comp.unix.microport:3844 Path: utzoo!utgpu!attcan!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!unmvax!bbx!cocktrice!mdm From: mdm@cocktrice.UUCP (Mike Mitchell) Newsgroups: news.software.b,comp.unix.microport Subject: Re: Cnews on System V/AT: "expression causes compiler loop" Summary: Here is a fix Message-ID: <116@cocktrice.UUCP> Date: 19 Nov 89 14:43:53 GMT References: <3056@splut.conmicro.com> Followup-To: comp.unix.microport Organization: Mike's Playground, Santa Fe, New Mexico Lines: 28 In article <3056@splut.conmicro.com>, jay@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@cocktrice.UUCP Santa Fe, NM 87505 UUCP ...!uunet!dmk3b1!cocktrice!mdm