aboutsummaryrefslogtreecommitdiffstats
path: root/src/nyancat.c
diff options
context:
space:
mode:
authorJonathan McCrohan <jmccrohan@gmail.com>2012-03-22 00:50:48 +0000
committerJonathan McCrohan <jmccrohan@gmail.com>2012-03-22 00:50:48 +0000
commitecb58eee436e442c3c5603d808cba2d4bf65c71e (patch)
treef6306b220d2430f1af4a2b12130a3bbf811db96d /src/nyancat.c
parentcee95aab0ecf3db7cbbef1423b276951e8eab76e (diff)
parent022782ce09d6ec0572740da73d375289b8d6da02 (diff)
downloadnyancat-ecb58eee436e442c3c5603d808cba2d4bf65c71e.tar.gz
Merge branch 'master' of git://github.com/klange/nyancat
Diffstat (limited to 'src/nyancat.c')
-rw-r--r--src/nyancat.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nyancat.c b/src/nyancat.c
index 68d43f2..33f8522 100644
--- a/src/nyancat.c
+++ b/src/nyancat.c
@@ -49,6 +49,7 @@
* WITH THE SOFTWARE.
*/
+#include <ctype.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>
@@ -59,6 +60,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.