This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
PATCH : readline/rltty/set_winsize
- To: "Philippe De Muyter" <phdm@macqel.be>
- Subject: PATCH : readline/rltty/set_winsize
- From: Elena Zannoni <ezannoni@cygnus.com>
- Date: Thu, 12 Aug 1999 13:44:23 -0400 (EDT)
- Cc: gdb-patches@sourceware.cygnus.com (gdb-patches@sourceware.cygnus.com)
- References: <199908112242.AAA03689@mail.macqel.be>
I tried to fix this problem, by changing the acconfig.h file, but that
is obviously not enough. (There was a problem with defining
GWINSZ_IN_SYS_IOCTL which allows inclusion of ioctl.h, which in turns
should define TIOGWINSZ)
What system are you building on?
You should forward this patch to the official maintainer of readline,
Chet Ramey, for inclusion in the official release.
Thanks
Elena
Philippe De Muyter writes:
> Symptom :
>
> gcc -g -O2 -W -Wall -o gdb \
> ...
> ../readline/libreadline.a(rltty.o): In function `get_tty_settings':
> rltty.c:391: undefined reference to `set_winsize'
>
> Possible fix :
>
> Thu Aug 12 00:11:02 1999 Philippe De Muyter <phdm@macqel.be>
>
> * rltty.c (get_tty_settings): Call `set_winsize' only #ifdef
> TIOCGWINSZ.
>
> --- ./readline/rltty.c Wed Aug 11 18:42:46 1999
> +++ ./readline/rltty.c Wed Aug 11 13:39:53 1999
> @@ -189,7 +189,9 @@ get_tty_settings (tty, tiop)
> int tty;
> TIOTYPE *tiop;
> {
> +#if defined (TIOCGWINSZ)
> set_winsize (tty);
> +#endif /* TIOCGWINSZ */
>
> tiop->flags = tiop->lflag = 0;
>
> @@ -388,7 +390,9 @@ get_tty_settings (tty, tiop)
> {
> int ioctl_ret;
>
> +#if defined (TIOCGWINSZ)
> set_winsize (tty);
> +#endif /* TIOCGWINSZ */
>
> while (1)
> {
>