diff options
author | Tay Ray Chuan <rctay@nus.edu.sg> | 2012-03-19 21:05:01 +0800 |
---|---|---|
committer | Tay Ray Chuan <rctay@nus.edu.sg> | 2012-03-19 21:05:01 +0800 |
commit | d8455890b81d3aebe612958786703579e73566af (patch) | |
tree | 56453621c17de98ed339bcbaf9585f3dc15f2abe | |
parent | 004e132aceb3f00597e9a753edfac09b0542c750 (diff) | |
download | nyancat-d8455890b81d3aebe612958786703579e73566af.tar.gz |
provide struct winsize and TIOCGWINSZ on Solaris
-rw-r--r-- | src/nyancat.c | 7 |
1 files changed, 7 insertions, 0 deletions
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 <setjmp.h> #include <sys/ioctl.h> +#ifndef TIOCGWINSZ +#include <termios.h> +#ifdef ECHO +#undef ECHO +#endif +#endif + /* * telnet.h contains some #defines for the various * commands, escape characters, and modes for telnet. |