ports/119101: [Patch] emulators/prodosemu: don't include sgtty

Ed Schouten ed at fxq.nl
Fri Dec 28 14:00:06 UTC 2007


>Number:         119101
>Category:       ports
>Synopsis:       [Patch] emulators/prodosemu: don't include sgtty
>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 Dec 28 14:00:05 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 prodosemu port includes the sgtty header file, but doesn't do
anything with it. This is bad habit, especially because the sgtty.h is a
deprecated header file, which describes an interface that's only present
when COMPAT_43TTY is present in the kernel.

There's no real harm in this case, but say, we want to remove this
header file, it will cause compilation to fail.
>How-To-Repeat:
>Fix:
This patch patches up the existing patch-ab in the files dir:

--- emulators/prodosemu/files/patch-ab	2000-08-23 10:43:36.000000000 +0200
+++ emulators/prodosemu/files/patch-ab	2007-12-28 14:53:48.000000000 +0100
@@ -1,12 +1,18 @@
 --- apple.h.orig	Tue Jan  9 13:00:03 1996
 +++ apple.h	Tue Aug 15 20:34:22 2000
-@@ -18,8 +18,7 @@
+@@ -17,15 +17,6 @@
+ #include <ctype.h>
  #endif
  
- #ifndef CBREAK
+-#ifndef CBREAK
 -/*#include <sgtty.h>*/
 -#include <bsd/sgtty.h>
-+#include <sgtty.h>
+-#endif
+-
+-#ifndef TIOCGETP
+-#include <sys/ioctl.h>
+-#endif
+-
+ #ifndef O_NDELAY
+ #include <fcntl.h>
  #endif
- 
- #ifndef TIOCGETP
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list