This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

PATCH : readline/rltty/set_winsize


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)
     {

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]