Moving applications from <sgtty.h> to <termios.h>

Ed Schouten ed at
Mon Mar 19 18:13:10 UTC 2007

* Ed Schouten <ed at> wrote:
> When all the PR's are closed, I guess most people can live without
> COMPAT_43TTY as well. Maybe we should add a permanent #warning to
> <sgtty.h> to warn people that they shouldn't use it and that it depends
> on COMPAT_43TTY?

This should do the trick:

--- src/include/sgtty.h	Tue May 24 11:57:10 1994
+++ src/include/sgtty.h	Mon Mar 19 19:09:04 2007
@@ -31,7 +31,14 @@
  *	@(#)sgtty.h	8.1 (Berkeley) 6/2/93
+ * $FreeBSD$
+#include <sys/cdefs.h>
+#warning "sgtty.h is deprecated and depends on COMPAT_43TTY.  Use termios.h instead."
 #ifndef USE_OLD_TTY
 #define	USE_OLD_TTY

I'd really appreciate it if this patch would make it to the source,
because then we can grep the Ports Tinderbox build logs to see which
ports still include this header file. Thanks!

 Ed Schouten <ed at>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :

More information about the freebsd-hackers mailing list