ports/110378: [misc/heyu2] Avoid sgtty.h
Ed Schouten
ed at fxq.nl
Fri Mar 16 08:40:05 UTC 2007
>Number: 110378
>Category: ports
>Synopsis: [misc/heyu2] Avoid 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: Fri Mar 16 08:40:04 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:
Just like misc/heyu, this port uses <sgtty.h> while it could perfectly
use <termios.h>. The patch is quite similar to misc/heyu.
>How-To-Repeat:
>Fix:
--- misc/heyu2/files/patch-Configure Thu Jan 1 01:00:00 1970
+++ misc/heyu2/files/patch-Configure Fri Mar 16 09:30:41 2007
@@ -0,0 +1,11 @@
+--- Configure Fri Mar 16 09:25:28 2007
++++ Configure Fri Mar 16 09:25:39 2007
+@@ -104,7 +104,7 @@
+ CC ?= gcc
+ CFLAGS += -g -O \$(DFLAGS) -Wall
+ LIBS = -lm -lc
+- DFLAGS= -DHASSELECT -DNEEDGTIME -DFREEBSD -DLOCKDIR=\"/var/spool/lock\" -DSYSBASEDIR=\"/usr/local/etc/heyu\" -DSPOOLDIR=\"/var/tmp/heyu\" $CM17AFLAG $EXT0FLAG
++ DFLAGS= -DPOSIX -DHASSELECT -DNEEDGTIME -DFREEBSD -DLOCKDIR=\"/var/spool/lock\" -DSYSBASEDIR=\"/usr/local/etc/heyu\" -DSPOOLDIR=\"/var/tmp/heyu\" $CM17AFLAG $EXT0FLAG
+ EoF
+ ;;
+ openbsd)
--- misc/heyu2/files/patch-tty.c-tty_aux.c Thu Jan 1 01:00:00 1970
+++ misc/heyu2/files/patch-tty.c-tty_aux.c Fri Mar 16 09:30:41 2007
@@ -0,0 +1,32 @@
+--- 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>
+--- tty_aux.c Sun Mar 30 22:57:59 2003
++++ tty_aux.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