ports/110738: [patch] games/tads sgtty.h -> termios.h conversion

Alex Kozlov spam at rm-rf.kiev.ua
Sat Mar 24 00:00:11 UTC 2007


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



More information about the freebsd-ports-bugs mailing list