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



* 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



Relevant Pages

  • Re: no help on this?
    ... warning and expect to see it pop up when it is a permanent deletion. ... not sent to a recycle bin and win98 would give the warning and xp does ...
    (microsoft.public.windowsxp.network_web)
  • Re: not speeding so OK
    ... >> Some places near where I live are prone to icing and have permanent signs ... > warning of the danger. ...
    (uk.rec.driving)
  • RE: How to tell if a project plan has been published - IMPORTANT WARNING
    ... WARNING... ... If the file is saved (and PWA told the PM to save it) the duplicate assignment is made permanent and from then forward, any update or publication of the project returns a SYSTEM ERROR in the spooler. ...
    (microsoft.public.project.pro_and_server)
  • Re: Ruck Interview
    ... now has a permanent piece of tape covering it, ... MT- Crim and I have been warning you about the dangers of alcoholic ...
    (rec.music.classical.guitar)