This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
PATCH : readline/rltty/set_winsize
- To: gdb-patches@sourceware.cygnus.com (gdb-patches@sourceware.cygnus.com)
- Subject: PATCH : readline/rltty/set_winsize
- From: "Philippe De Muyter" <phdm@macqel.be>
- Date: Thu, 12 Aug 1999 00:42:08 +0200 (CEST)
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)
{