summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Lange <kevin.lange@phpwnage.com>2012-03-19 09:55:45 -0700
committerKevin Lange <kevin.lange@phpwnage.com>2012-03-19 09:55:45 -0700
commit022782ce09d6ec0572740da73d375289b8d6da02 (patch)
tree1e6a3f7f915898f1f21bb127a29ad12e3d8bac18
parent004e132aceb3f00597e9a753edfac09b0542c750 (diff)
parent3fccb064bd3f6748c891026162b9e2d867c79fd4 (diff)
downloadnyancat-022782ce09d6ec0572740da73d375289b8d6da02.tar.gz
Merge pull request #15 from rctay/rc/solaris
fixes for Solaris
-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.
a6a3216854fbe479&follow=1'>Add basic FIFO pluginmichux4-0/+197 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@869 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-04-04fixed autoconfmichux2-0/+3 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@868 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-04-04update autoconfmichux5-2392/+438 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@867 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-04-04Add asterisk plugin, thanks to mcarey@yostengineering.commichux3-1/+197 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@866 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-04-03fix typo, close #114michux1-1/+1 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@865 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-04-03update charset for Crystalfontz Model 632 and 634michux2-3/+87 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@864 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-03-05improve error messagesmichux1-7/+13 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@863 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-03-03reformat plugin_mpd - use c style commentsmichux1-8/+8 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@862 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-03-03correct code format (indent)michux1-2/+2 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@861 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-03-03correct code format (indent)michux5-184/+185 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@860 3ae390bd-cb1e-0410-b409-cd5a39f66f1f