[news.software.b] rn Ultrix patches wanted

woods@ncar.ucar.edu (Greg Woods) (07/20/88)

Could someone out there mail me the necessary patches to rn to make it
set CBREAK mode correctly under Ultrix (or a place where I can FTP the 
patches from)? Now that I have an Ultrix machine running news here, I'm 
getting bit by this one. Thanks.

--Greg

vixie@palo-alto.DEC.COM (Paul Vixie) (07/20/88)

In article <451@ncar.ucar.edu> woods@ncar.UCAR.EDU (Greg Woods) writes:
# Could someone out there mail me the necessary patches to rn to make it
# set CBREAK mode correctly under Ultrix (or a place where I can FTP the 
# patches from)? Now that I have an Ultrix machine running news here, I'm 
# getting bit by this one. Thanks.
# 
# --Greg

Big-time, major ugly no-no hack to Configure:

===============
: see if this is a termio system
if $test -r /usr/include/termio.h ; then
    if grep -s Ultrix /etc/motd ; then
        $echo "termio.h found, but this is Ultrix so we'll use sgtty.h."
        termio=undef
    else
        termio=define
        $echo "termio.h found."
    fi
else
    if $test -r /usr/include/sgtty.h ; then
        termio=undef
        $echo "sgtty.h found."
    else
        termio=undef
        $echo "Neither termio.h nor sgtty.h found--you could have problems."
    fi
fi
===============

It works, but it ain't right.
-- 
Paul Vixie
Digital Equipment Corporation	Work:  vixie@dec.com	Play:  paul@vixie.UUCP
Western Research Laboratory	 uunet!decwrl!vixie	   uunet!vixie!paul
Palo Alto, California, USA	  +1 415 853 6600	   +1 415 864 7013

woods@ncar.ucar.edu (Greg Woods) (07/22/88)

Several people informed me that the problem is due to the fact that
the Configure script when run under Ultrix thinks you are running
the termio stuff instead of termcap. The two fixes possible are to
hack the script as Paul Vixie suggested, or just go in and change
config.h by hand and undef termio. That's what I did and now it
works fine.

--Greg