Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!cs.utexas.edu!inebriae!al From: al@inebriae.UUCP (Al Evans) Newsgroups: comp.unix.i386 Subject: Re: Help with Interactive and news Summary: Getting news to compile under 2.0.2. Keywords: #undef Message-ID: <419@inebriae.UUCP> Date: 29 Aug 89 14:39:47 GMT References: <2069@kodak.UUCP> <1086@virtech.UUCP> Reply-To: al@inebriae.UUCP (Al Evans) Followup-To: comp.unix.i386 Organization: PowerTools Lines: 37 In article <1086@virtech.UUCP> cpcahil@virtech.UUCP (Conor P. Cahill) writes: >In article <2069@kodak.UUCP>, mark@kodak.UUCP (Mark Hilliard) writes: >> [statement that he can't get news to compile] > >David Raines posted the following to the net a while back------- > >I got the source for bnews-2.11 from UUNET. Other than the standard >localize.sh changes for USG/SysV, the only thing that wouldn,t compile >was virtterm.c. Add the following includes: > > #include > #include > >The 'winsize' structure is defined in ptem.h, which is dependent on stream.h. >Apparently this is a change from earlier versions. I just finished fighting with this for a couple of days. The problem is that unless you have Streams installed, you don't HAVE ptem.h. While termio.h defines the ioctl call TIOCGWINSZ, the data structure needed as a parameter to that call is defined elsewhere. Nasty. The problem didn't exist under 1.0.6, because TIOCGWINSZ wasn't defined in termio.h. The simplest solution I found was to add a line in virtterm.c, right after #ifdef USG saying #undef TIOCGWINSZ I guess to be correct about it, you really should add the necessary edit instruction to your localize script. Anyway, this seems to work just fine. --Al Evans-- -- Al Evans {tntdev,texbell,ssbn}!inebriae!al al@inebriae.WLK.COM