ports/110360: [misc/heyu] Don't let it touch sgtty.h
Ed Schouten
ed at fxq.nl
Thu Mar 15 22:00:10 UTC 2007
>Number: 110360
>Category: ports
>Synopsis: [misc/heyu] Don't let it touch sgtty.h
>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: Thu Mar 15 22:00:09 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 at palm.hoeg.nl:/usr/obj/usr/src/sys/PALM i386
>Description:
The heyu port makes use of <sgtty.h>, though it supports <termios.h>
when -DPOSIX is turned on. Using <sgtty.h> is bad, because it breaks
on kernels without COMPAT_43TTY
>How-To-Repeat:
>Fix:
--- misc/heyu/files/patch-Configure Thu Jan 1 01:00:00 1970
+++ misc/heyu/files/patch-Configure Thu Mar 15 22:49:49 2007
@@ -0,0 +1,11 @@
+--- Configure Mon Mar 31 08:58:14 2003
++++ Configure Thu Mar 15 22:48:05 2007
+@@ -86,7 +86,7 @@
+ CC = gcc
+ CFLAGS = -g -O \$(DFLAGS) -Wall
+ LIBS = -lm -lc
+- DFLAGS= -DHASSELECT -DNEEDGTIME -DFREEBSD
++ DFLAGS= -DPOSIX -DHASSELECT -DNEEDGTIME -DFREEBSD
+ EoF
+ ;;
+ sco*)
--- misc/heyu/files/patch-tty.c Thu Jan 1 01:00:00 1970
+++ misc/heyu/files/patch-tty.c Thu Mar 15 22:49:49 2007
@@ -0,0 +1,16 @@
+--- tty.c Sun Mar 30 22:57:59 2003
++++ tty.c Thu Mar 15 22:48:59 2007
+@@ -86,11 +86,11 @@
+ #include <sgtty.h>
+ struct sgttyb oldsb, newsb;
+ #else
+-#ifndef POSIX
+-#include <termio.h>
+ #ifndef NCC
+ #define NCC NCCS
+ #endif
++#ifndef POSIX
++#include <termio.h>
+ struct termio oldsb, newsb;
+ #else
+ #include <termios.h>
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list