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



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

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