Date: Wed, 11 Jun 2008 14:33:04 +0200 (CEST) From: Ed Schouten <ed@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/124485: [Patch] comms/conserver-com: don't use sgtty Message-ID: <20080611123304.55C321CC1A@palm.hoeg.nl> Resent-Message-ID: <200806111240.m5BCe87q034596@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 124485 >Category: ports >Synopsis: [Patch] comms/conserver-com: don't use sgtty >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jun 11 12:40:08 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Ed Schouten >Release: FreeBSD 6.3-STABLE i386 >Organization: >Environment: System: FreeBSD palm.hoeg.nl 6.3-STABLE FreeBSD 6.3-STABLE #0: Wed Jun 4 08:56:01 CEST 2008 ed@palm.hoeg.nl:/usr/obj/usr/src/sys/PALM i386 >Description: The conserver-com port also needs a small change to compile properly when sgtty is not available. On FreeBSD, TAB3 is called OXTABS. See the PR about conserver for more details. >How-To-Repeat: >Fix: --- conserver/group.c +++ conserver/group.c @@ -3839,12 +3839,10 @@ "failed]\r\n", -1); continue; } - if (TAB3 == (TABDLY & sbuf.c_oflag)) { - sbuf.c_oflag &= ~TABDLY; - sbuf.c_oflag |= TAB0; + if (sbuf.c_oflag & OXTABS) { + sbuf.c_oflag &= ~OXTABS; } else { - sbuf.c_oflag &= ~TABDLY; - sbuf.c_oflag |= TAB3; + sbuf.c_oflag |= OXTABS; } if (-1 == tcsetattr(FileFDNum >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080611123304.55C321CC1A>