]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
[VSWTCH]: Some systems, like Cygwin, use VSWTC
authorJim Meyering <jim@meyering.net>
Sun, 30 Jan 2005 14:50:22 +0000 (14:50 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 30 Jan 2005 14:50:22 +0000 (14:50 +0000)
instead of VSWTCH, for use with CSWTCH.

src/stty.c

index d2131a127198c2aad276c8c5bf698509169931af..029080fd53fa169984cf1ad495a7380c2dd4a835 100644 (file)
@@ -1,5 +1,5 @@
 /* stty -- change and print terminal line settings
-   Copyright (C) 1990-2004 Free Software Foundation, Inc.
+   Copyright (C) 1990-2005 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
 #if defined(VEOL2) && !defined(CEOL2)
 # define CEOL2 _POSIX_VDISABLE
 #endif
+/* Some platforms have VSWTC, others VSWTCH.  In both cases, this control
+   character is initialized by CSWTCH, if present.  */
+#if defined(VSWTC) && !defined(VSWTCH)
+# define VSWTCH VSWTC
+#endif
 /* ISC renamed swtch to susp for termios, but we'll accept either name.  */
 #if defined(VSUSP) && !defined(VSWTCH)
 # define VSWTCH VSUSP
-# define CSWTCH CSUSP
+# if defined(CSUSP) && !defined(CSWTCH)
+#  define CSWTCH CSUSP
+# endif
 #endif
 #if defined(VSWTCH) && !defined(CSWTCH)
 # define CSWTCH _POSIX_VDISABLE