Re: Moving applications from <sgtty.h> to <termios.h>
- From: Ed Schouten <ed@xxxxxx>
- Date: Mon, 19 Mar 2007 19:13:08 +0100
* Ed Schouten <ed@xxxxxx> 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 @@
* SUCH DAMAGE.
*
* @(#)sgtty.h 8.1 (Berkeley) 6/2/93
+ * $FreeBSD$
*/
+
+#include <sys/cdefs.h>
+
+#ifdef __CC_SUPPORTS_WARNING
+#warning "sgtty.h is deprecated and depends on COMPAT_43TTY. Use termios.h instead."
+#endif
#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@xxxxxx>
WWW: http://g-rave.nl/
Attachment:
pgpusGh6qtPtk.pgp
Description: PGP signature
- References:
- Re: Moving applications from <sgtty.h> to <termios.h>
- From: Ed Schouten
- Re: Moving applications from <sgtty.h> to <termios.h>
- Prev by Date: Re: Pthread spin locks
- Next by Date: clamav problems with 6-STABLE, with libthr and libpthread
- Previous by thread: Re: Moving applications from <sgtty.h> to <termios.h>
- Next by thread: nve: ethernet address reversal code
- Index(es):
Relevant Pages
|
|