summaryrefslogtreecommitdiff
path: root/src/stty.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1993-11-27 00:05:27 +0000
committerJim Meyering <jim@meyering.net>1993-11-27 00:05:27 +0000
commit3ea7d7295764819b98923ca2ac9fc03e24932f1b (patch)
tree3306ee09775022524fde3df6a83b941ab1e18192 /src/stty.c
parent22ba8f3323f35f3b8239554ae52684dd15179d29 (diff)
downloadcoreutils-3ea7d7295764819b98923ca2ac9fc03e24932f1b.tar.xz
Redefine TIOCGWINSZ to TCGETS for Solaris.
Diffstat (limited to 'src/stty.c')
-rw-r--r--src/stty.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/stty.c b/src/stty.c
index fc44cd35d..5ba820bef 100644
--- a/src/stty.c
+++ b/src/stty.c
@@ -62,6 +62,9 @@
#if defined(GWINSZ_BROKEN) /* Such as for SCO UNIX 3.2.2. */
#undef TIOCGWINSZ
+#ifdef TCGETS /* Solaris 2.2 */
+#define TIOCGWINSZ TCGETS
+#endif
#endif
#ifndef _POSIX_VDISABLE