Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Mar 2007 23:46:29 GMT
From:      Alex Kozlov<spam@rm-rf.kiev.ua>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/110738: [patch] games/tads sgtty.h -> termios.h conversion
Message-ID:  <200703232346.l2NNkT00058450@www.freebsd.org>
Resent-Message-ID: <200703240000.l2O00B1F036809@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         110738
>Category:       ports
>Synopsis:       [patch] games/tads sgtty.h -> termios.h conversion
>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:   Sat Mar 24 00:00:10 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Alex Kozlov
>Release:        
>Organization:
private
>Environment:
>Description:
Convert games/tads to use termios.h instead of sgtty.h
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: games/tads/files/patch-tads2_osunixt.c
@@ -0,0 +1,19 @@
+Index: osunixt.c
+@@ -960,7 +960,7 @@
+         t.c_cc[VMIN] = 1;
+         t.c_cc[VTIME] = 0;
+ #if !defined(SGI_IRIX)
+-        t.c_oflag &= (~XTABS);
++        t.c_oflag &= (~OXTABS);
+ #else
+         t.c_oflag &= (~TAB3);
+ #endif
+@@ -984,7 +984,7 @@
+ #ifdef  USE_SGTTY
+     ospeed = t.sg_ospeed;
+ #else   
+-    ospeed = t.c_cflag & CBAUD;
++	ospeed = cfgetospeed(&t);
+ #endif
+     if (ospeed == 0)
+         ospeed = 11;
Index: games/tads/files/patch-tads2_osunixt.h
@@ -0,0 +1,10 @@
+Index: osunixt.h
+@@ -84,7 +84,7 @@
+  * Define the following to use sgtty.h instead of termios or direct
+  * ioctl hacking.
+  */
+-#if defined(NEXT) || defined(IBM_RT) || defined(FREEBSD_386) || defined(IBM_AIX) || defined(NETBSD) || defined(OPENBSD) || defined(DARWIN)
++#if defined(NEXT) || defined(IBM_RT) || defined(IBM_AIX) || defined(NETBSD) || defined(OPENBSD) || defined(DARWIN)
+ #define USE_IOCTL_INSTEAD_OF_TERMIOS
+ #define USE_SGTTY
+ #endif

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200703232346.l2NNkT00058450>