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(+) (limited to 'src/nyancat.c') 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 From 3fccb064bd3f6748c891026162b9e2d867c79fd4 Mon Sep 17 00:00:00 2001 From: Tay Ray Chuan Date: Mon, 19 Mar 2012 21:06:12 +0800 Subject: include ctype.h for tolower() --- src/nyancat.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/nyancat.c') diff --git a/src/nyancat.c b/src/nyancat.c index 207bcd0..33f8522 100644 --- a/src/nyancat.c +++ b/src/nyancat.c @@ -49,6 +49,7 @@ * WITH THE SOFTWARE. */ +#include #include #include #include -- cgit v1.2.3