ports/110444: [devel/xxgdb] Use termios.h instead of sgtty.h
Ed Schouten
ed at fxq.nl
Sat Mar 17 12:40:04 UTC 2007
>Number: 110444
>Category: ports
>Synopsis: [devel/xxgdb] Use termios.h instead of 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: Sat Mar 17 12:40:03 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 devel/xxgdb port uses <sgtty.h> features, which require COMPAT_43 or
COMPAT_43TTY. We're better off by using <termios.h>.
>How-To-Repeat:
>Fix:
Apply the patch below:
--- devel/xxgdb/files/patch-ac Wed Nov 22 17:09:07 2000
+++ devel/xxgdb/files/patch-ac Sat Mar 17 13:33:23 2007
@@ -1,5 +1,16 @@
--- calldbx.c.orig Tue Jun 20 07:11:00 1995
+++ calldbx.c Fri Nov 17 21:27:09 2000
+@@ -74,8 +74,8 @@
+ #include <string.h>
+ #include <fcntl.h>
+ #include "global.h"
+-#if !(defined(OLDSUNOS) || defined(BSD))
+-#include <termio.h>
++#if !(defined(OLDSUNOS) || defined(BSD)) || defined(__FreeBSD__)
++#include <termios.h>
+ #else
+ #include <sgtty.h>
+ #endif
@@ -137,13 +137,17 @@
#ifndef sco
@@ -19,3 +30,29 @@
if ((master = open(pty, O_RDWR)) >= 0)
return (master);
}
+@@ -246,8 +250,8 @@
+ /*
+ * (JBL)10MAY91 : use sgttyb if generic BSD
+ */
+-#if !(defined(OLDSUNOS) || defined(BSD))
+- struct termio Termio;
++#if !(defined(OLDSUNOS) || defined(BSD)) || defined(__FreeBSD__)
++ struct termios Termio;
+ #else
+ struct sgttyb Termio;
+ #endif
+@@ -355,11 +359,11 @@
+ /*
+ * (JBL)10MAY91 : use sgttyb if OLDSUN or generic BSD
+ */
+-#if !(defined(OLDSUNOS) || defined(BSD))
+- ioctl(slave, TCGETA, &Termio);
++#if !(defined(OLDSUNOS) || defined(BSD)) || defined(__FreeBSD__)
++ tcgetattr(slave, &Termio);
+ Termio.c_lflag &= ~ECHO; /* No echo */
+ Termio.c_oflag &= ~ONLCR; /* Do not map NL to CR-NL on output */
+- ioctl(slave, TCSETA, &Termio);
++ tcsetattr(slave, TCSANOW, &Termio);
+ #else
+ ioctl(slave, TIOCGETP, &Termio);
+ Termio.sg_flags &= ~ECHO; /* No echo */
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list