summaryrefslogtreecommitdiff
path: root/src/common/console.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/console.c')
-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