summaryrefslogtreecommitdiff
path: root/Source/Core/Common
diff options
context:
space:
mode:
authorScott Mansell <phiren@gmail.com>2015-09-06 19:59:49 +1200
committerScott Mansell <phiren@gmail.com>2015-09-06 19:59:49 +1200
commita26cac87fcea6a0859d6b95653d67710cb0f800e (patch)
tree5c4dbbf0d4be612ab9d0642261dcc34d2ac7b37c /Source/Core/Common
parent61da83182ee21d8675739b7317ee1ae73e33692d (diff)
parent8aed7589aeddd9f1ac0bba8726b052e82c1ed8ba (diff)
Merge pull request #2959 from rohit-n/build-pch
Fix building with PCH disabled.
Diffstat (limited to 'Source/Core/Common')
-rw-r--r--Source/Core/Common/Logging/ConsoleListenerNix.cpp4
-rw-r--r--Source/Core/Common/Thread.cpp4
2 files changed, 8 insertions, 0 deletions
diff --git a/Source/Core/Common/Logging/ConsoleListenerNix.cpp b/Source/Core/Common/Logging/ConsoleListenerNix.cpp
index dd64ca314e..b891b29090 100644
--- a/Source/Core/Common/Logging/ConsoleListenerNix.cpp
+++ b/Source/Core/Common/Logging/ConsoleListenerNix.cpp
@@ -4,6 +4,10 @@
#include <cstdio>
+#ifndef _WIN32
+#include <unistd.h>
+#endif
+
#include "Common/Logging/ConsoleListener.h"
ConsoleListener::ConsoleListener()
diff --git a/Source/Core/Common/Thread.cpp b/Source/Core/Common/Thread.cpp
index 1e60fbb29f..11cb48bb49 100644
--- a/Source/Core/Common/Thread.cpp
+++ b/Source/Core/Common/Thread.cpp
@@ -6,6 +6,10 @@
#include "Common/CommonTypes.h"
#include "Common/Thread.h"
+#ifndef _WIN32
+#include <unistd.h>
+#endif
+
#ifdef __APPLE__
#include <mach/mach.h>
#elif defined BSD4_4 || defined __FreeBSD__