dwp@mtune.ATT.COM (David Preisler) (12/10/88)
While trying to install GnuEmacs 18.52 on a 3b2 700 running Unix V 3.2.1
with "s-usg5-3.h" and "m-att3b.h" defined in config.h encountered a series
of syntax errors in src/sysdep.c: i.e. ws_row and ws_col undefined.
It appears that that the #defines are never made in code seg 1- and when
it enters code seg 2 ws_row and ws_col remain undefined. I suspect that
on a 3b it should *never* enter either code seg 1 or 2.
Does anyone know what is going on....
( please respond by email )
Thanks in advance,
David Preisler
Email: att!mtune!dwp.ATT.COM
Phone: (201) 957-2594
---- code segment 1 ----
>
> /* Define the 4.3 names in terms of the Sun names
> if the latter exist and the former do not. */
>
> #ifdef TIOCGSIZE
> #ifndef TIOCGWINSZ
> #define TIOCGWINSZ TIOCGSIZE
> #define winsize ttysize
> #define ws_row ts_lines
> #define ws_col ts_cols
> #endif
> #endif /* Sun */
>
---- code segment 2 ----
>
> /* Do it using the 4.3 names if possible. */
> #ifdef TIOCGWINSZ
> struct winsize size;
> *heightp = 0;
> if (ioctl (0, TIOCGWINSZ, &size) < 0)
> return;
> if ((unsigned) size.ws_col > MScreenWidth
> || (unsigned) size.ws_row > MScreenLength)
> return;
> *widthp = size.ws_col;
> *heightp = size.ws_row;
> #else /* not TIOCGWNSIZ */
> #ifdef VMS
> .....