Date: Fri, 28 Dec 2007 15:47:05 +0100 (CET) From: Ed Schouten <ed@fxq.nl> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/119104: [Patch] japanese/kterm: fix build without sgtty.h Message-ID: <20071228144705.6AA6A1CCD9@palm.hoeg.nl> Resent-Message-ID: <200712281450.lBSEo0kR015443@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 119104 >Category: ports >Synopsis: [Patch] japanese/kterm: fix build without sgtty.h >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Dec 28 14:50:00 UTC 2007 >Closed-Date: >Last-Modified: >Originator: Ed Schouten >Release: FreeBSD 6.3-PRERELEASE i386 >Organization: >Environment: System: FreeBSD palm.hoeg.nl 6.3-PRERELEASE FreeBSD 6.3-PRERELEASE #0: Wed Dec 19 16:07:46 CET 2007 ed@palm.hoeg.nl:/usr/obj/usr/src/sys/PALM i386 >Description: The kterm port already downloads a patch for termios support, but the file main.c still includes sgtty in a single place, which will cause errors if sgtty.h would be removed. >How-To-Repeat: >Fix: The following patch extends the patch to main.c to only include sgtty.h when we build without termios support. --- japanese/kterm/files/patch-main.c 2006-06-21 08:54:43.000000000 +0200 +++ japanese/kterm/files/patch-main.c 2007-12-28 15:46:37.000000000 +0100 @@ -10,6 +10,15 @@ #include <sys/resource.h> #endif #ifdef sco +@@ -236,7 +238,7 @@ + #define HAS_UTMP_UT_HOST + #endif + #else /* } !SYSV { */ /* BSD systems */ +-#ifndef linux ++#if !defined(linux) && !defined(USE_POSIX_TERMIOS) + #include <sgtty.h> + #endif + #include <sys/resource.h> @@ -1355,6 +1357,8 @@ d_tio.c_cc[VDISCARD] = CFLUSH; d_tio.c_cc[VWERASE] = CWERASE; >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071228144705.6AA6A1CCD9>