From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Mar 26 21:20:03 2007 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C707516A400 for ; Mon, 26 Mar 2007 21:20:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id AA61A13C45B for ; Mon, 26 Mar 2007 21:20:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l2QLK3NQ044365 for ; Mon, 26 Mar 2007 21:20:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l2QLK3Sc044364; Mon, 26 Mar 2007 21:20:03 GMT (envelope-from gnats) Resent-Date: Mon, 26 Mar 2007 21:20:03 GMT Resent-Message-Id: <200703262120.l2QLK3Sc044364@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ed Schouten Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 98AE516A402 for ; Mon, 26 Mar 2007 21:19:41 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (palm.hoeg.nl [83.98.131.212]) by mx1.freebsd.org (Postfix) with ESMTP id 6685413C483 for ; Mon, 26 Mar 2007 21:19:41 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 9A9301CC79; Mon, 26 Mar 2007 23:19:40 +0200 (CEST) Message-Id: <20070326211940.9A9301CC79@palm.hoeg.nl> Date: Mon, 26 Mar 2007 23:19:40 +0200 (CEST) From: Ed Schouten To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/110884: games/tads: use instead of X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Ed Schouten List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Mar 2007 21:20:03 -0000 >Number: 110884 >Category: ports >Synopsis: games/tads: use instead of >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: Mon Mar 26 21:20:02 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Ed Schouten >Release: FreeBSD 6.2-STABLE i386 >Organization: >Environment: System: FreeBSD palm.hoeg.nl 6.2-STABLE FreeBSD 6.2-STABLE #0: Sun Feb 11 22:32:09 CET 2007 root@palm.hoeg.nl:/usr/obj/usr/src/sys/PALM i386 >Description: One of the last remaining ports on my list that isn't hard to port to , is TADS. Using instead of will make the application work on kernels that aren't compiled with COMPAT_43/COMPAT_43TTY. >How-To-Repeat: >Fix: Place the following patch in the `files/' directory. The unportable `t.c_cflag & CBAUD' line has been replaced with cfgetospeed(). This looks like the right thing to do, because on Linux, cfgetospeed() is a macro to exactly the same thing. --- osunixt.c Wed Dec 15 03:06:26 2004 +++ osunixt.c Mon Mar 26 23:07:34 2007 @@ -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; --- osunixt.h Tue Feb 17 03:20:41 2004 +++ osunixt.h Mon Mar 26 23:07:34 2007 @@ -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: