From: Jim Meyering Date: Sat, 27 Nov 1993 00:05:27 +0000 (+0000) Subject: Redefine TIOCGWINSZ to TCGETS for Solaris. X-Git-Tag: textutils-1_12_1~800 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3ea7d7295764819b98923ca2ac9fc03e24932f1b;p=thirdparty%2Fcoreutils.git Redefine TIOCGWINSZ to TCGETS for Solaris. --- diff --git a/src/stty.c b/src/stty.c index fc44cd35d3..5ba820bef5 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