summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-01-30 14:50:22 +0000
committerJim Meyering <jim@meyering.net>2005-01-30 14:50:22 +0000
commit9c3cb2ad2edec3eecec4c72ca1c4305708e0f3e4 (patch)
tree4f3b21e9ceb8af006fc5e6efa2d5abd479ffe8e4 /src
parentb56b097b9a1382d93475cc99c8afd782a5b55cfa (diff)
downloadcoreutils-9c3cb2ad2edec3eecec4c72ca1c4305708e0f3e4.tar.xz
[VSWTCH]: Some systems, like Cygwin, use VSWTC
instead of VSWTCH, for use with CSWTCH.
Diffstat (limited to 'src')
-rw-r--r--src/stty.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/stty.c b/src/stty.c
index d2131a127..029080fd5 100644
--- a/src/stty.c
+++ b/src/stty.c
@@ -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
@@ -100,10 +100,17 @@
#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