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!
This commit is contained in:
Christian Widmer 2015-10-07 21:09:35 +02:00
parent e955a3a191
commit 6eb6fa9bf8
1 changed files with 3 additions and 0 deletions

View File

@ -21,6 +21,9 @@
#ifdef __FreeBSD__
#include <signal.h>
#endif
#ifndef _WIN32
#include <unistd.h> // Needed for _POSIX_VERSION
#endif
namespace EMM
{