From d8455890b81d3aebe612958786703579e73566af Mon Sep 17 00:00:00 2001 From: Tay Ray Chuan Date: Mon, 19 Mar 2012 21:05:01 +0800 Subject: provide struct winsize and TIOCGWINSZ on Solaris --- src/nyancat.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/nyancat.c b/src/nyancat.c index 68d43f2..207bcd0 100644 --- a/src/nyancat.c +++ b/src/nyancat.c @@ -59,6 +59,13 @@ #include #include +#ifndef TIOCGWINSZ +#include +#ifdef ECHO +#undef ECHO +#endif +#endif + /* * telnet.h contains some #defines for the various * commands, escape characters, and modes for telnet. -- cgit v1.2.3