summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/MCLogger.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/MCLogger.cpp b/source/MCLogger.cpp
index 99c1533ac..80cbf7406 100644
--- a/source/MCLogger.cpp
+++ b/source/MCLogger.cpp
@@ -17,6 +17,8 @@ bool g_ShouldColorOutput = false;
HANDLE g_Console = GetStdHandle(STD_OUTPUT_HANDLE);
WORD g_DefaultConsoleAttrib = 0x07;
#elif defined (__linux) && !defined(ANDROID_NDK)
+ #include <unistd.h> // Needed for isatty() on Linux
+
bool g_ShouldColorOutput;
#endif