From 6eb6fa9bf80871b8326dc16a9811e45e0ff78b89 Mon Sep 17 00:00:00 2001 From: Christian Widmer Date: Wed, 7 Oct 2015 21:09:35 +0200 Subject: [PATCH] Include unistd.h in memtools.cpp to fix nopch Fixes falling back to generic on non-windows builds with PCH disabled leading to runtime crashes and the pagefault test failing. Thanks to HdkR! --- Source/Core/Core/MemTools.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Core/Core/MemTools.cpp b/Source/Core/Core/MemTools.cpp index a9eca54464..ef91d469a3 100644 --- a/Source/Core/Core/MemTools.cpp +++ b/Source/Core/Core/MemTools.cpp @@ -21,6 +21,9 @@ #ifdef __FreeBSD__ #include #endif +#ifndef _WIN32 +#include // Needed for _POSIX_VERSION +#endif namespace EMM {