summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-07-08 14:57:53 -0300
committershennetsind <ind@henn.et>2013-07-08 14:57:53 -0300
commit4f69a9ea0f80e78da61482b2d1143a6e58859fd1 (patch)
tree74b8140fd8fd67bcc626d48366ee9237f9c3432a /src/common
parent19f0fcd80e004aeaf201112c90992f5342240f2d (diff)
downloadhercules-4f69a9ea0f80e78da61482b2d1143a6e58859fd1.tar.gz
hercules-4f69a9ea0f80e78da61482b2d1143a6e58859fd1.tar.bz2
hercules-4f69a9ea0f80e78da61482b2d1143a6e58859fd1.tar.xz
hercules-4f69a9ea0f80e78da61482b2d1143a6e58859fd1.zip
Fixed Bug #7493
Special Thanks to quesoph http://hercules.ws/board/tracker/issue-7493-compiling-with-cygwin/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/common')
-rw-r--r--src/common/console.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/console.c b/src/common/console.c
index 4ae210e55..a9ea0386f 100644
--- a/src/common/console.c
+++ b/src/common/console.c
@@ -21,14 +21,15 @@
#include <stdio.h>
#include <stdlib.h>
-#ifndef WIN32
+#if !defined(WIN32)
#include <unistd.h>
+ #include <sys/time.h>
#else
#include "../common/winapi.h" // Console close event handling
#endif
#ifdef CONSOLE_INPUT
- #ifdef WIN32
+ #if defined(WIN32)
#include <conio.h> /* _kbhit() */
#endif
#endif