sleazy patch for info build

Robert Lipe robertl@dgii.com
Tue Oct 28 20:53:00 GMT 1997


The problem is that if you have a system that #defines TIOCGETC,
configure gets a little overambitious and assumes you have a useful
struct tchars.  On [ at least ] OpenServer, this is the trap we fall
into, which causes the build of terminal.c to keel.

I could have added a bunch of ick in configure to make it a "real" 
test, but this was another of the many mutant tty interfaces of the
past.   I decided if you're on a POSIX system, we should just put
this out of its misery.  

Yes, I'm a little ashamed.   I think I'll still manage to sleep 
tonight somehow.   

I will also send this to SCO to encourage to pull TIOCGETC.  Alternately,  
they can provide struct tchars in a useful form.

Tue Oct 28 22:50:06 1997   Robert Lipe  (robertl@dgii.com)
	* info/termdep.h: If POSIX, #undef TIOCGETC for benefit of systems
	that provide TIOCETC but not struct tchars.




*** egcs-971023/texinfo/info/termdep.h_	Tue Oct 28 22:40:15 1997
--- egcs-971023/texinfo/info/termdep.h	Tue Oct 28 22:41:58 1997
***************
*** 45,50 ****
--- 45,55 ----
  
  #if defined (HAVE_TERMIOS_H)
  #  include <termios.h>
+ /* 
+  * POSIX does not mandate that we have these and it may, in fact, be only
+  * partially implemented 
+  */
+ #  undef TIOCGETC
  #else
  #  if defined (HAVE_TERMIO_H)
  #    include <termio.h>



More information about the Gcc mailing list