ports/124485: [Patch] comms/conserver-com: don't use sgtty

Ed Schouten ed at FreeBSD.org
Wed Jun 11 12:40:09 UTC 2008


>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 at 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:



More information about the freebsd-ports-bugs mailing list