Path: utzoo!attcan!uunet!bfmny0!tneff From: tneff@bfmny0.BFM.COM (Tom Neff) Newsgroups: comp.sys.att Subject: Re: Compiling less97 on 6386 Message-ID: <15702@bfmny0.BFM.COM> Date: 26 Jul 90 06:12:43 GMT References: Reply-To: tneff@bfmny0.BFM.COM (Tom Neff) Distribution: na Lines: 47 In article holsberg@pilot.njin.net (Peter J. Holsberg) writes: >Has anyone successfully compiled less V17 (or later) on a 6386 running >AT&T SV R3.2.2 using the new Standard (i.e., ANSI) C compiler? I get >an error message because (I believe) that the struct "winsize" is not >defined. Can anyone send me a copy of that struct definition? It has nothing to do with the ANSI compiler -- I have had to mod this on every version of 'less' so far under AT&T 3.2.1. Make sure screen.c starts out like this: -------------------------------------------------------------------- /* * Routines which deal with the characteristics of the terminal. * Uses termcap to be as terminal-independent as possible. * * {{ Someday this should be rewritten to use curses. }} */ #include "less.h" #if XENIX #include #include #endif #if TERMIO #include #else #include #endif #ifdef TIOCGWINSZ #include #include #include #include #else /* * For the Unix PC (ATT 7300 & 3B1): * Since WIOCGETD is defined in sys/window.h, we can't use that to decide * whether to include sys/window.h. Use SIGPHONE from sys/signal.h instead. */ #include #ifdef SIGPHONE #include #endif #endif