ports/119104: [Patch] japanese/kterm: fix build without sgtty.h
Ed Schouten
ed at fxq.nl
Fri Dec 28 14:50:01 UTC 2007
>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 at 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:
More information about the freebsd-ports-bugs
mailing list