aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTay Ray Chuan <rctay@nus.edu.sg>2012-03-19 21:05:01 +0800
committerTay Ray Chuan <rctay@nus.edu.sg>2012-03-19 21:05:01 +0800
commitd8455890b81d3aebe612958786703579e73566af (patch)
tree56453621c17de98ed339bcbaf9585f3dc15f2abe /src
parent004e132aceb3f00597e9a753edfac09b0542c750 (diff)
downloadnyancat-d8455890b81d3aebe612958786703579e73566af.tar.gz
provide struct winsize and TIOCGWINSZ on Solaris
Diffstat (limited to '')
-rw-r--r--src/nyancat.c7
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.