From f7f4ea4243c8083e0c1aa0ad9d07700cb84632d1 Mon Sep 17 00:00:00 2001 From: InstantMuffin Date: Sun, 15 Mar 2015 21:42:06 +0100 Subject: [PATCH] Fixed missing include in psyfork/memoryutils.cpp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Error: MemoryUtils.cpp: In member function ‘void* MemoryUtils::ResolveSymbol(void*, const char*)’: MemoryUtils.cpp:249:43: error: ‘fstat’ was not declared in this scope if (dlfile == -1 || fstat(dlfile, &dlstat) == -1) Fixed by adding missing include: #include --- tools/gdc-psyfork/MemoryUtils.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/gdc-psyfork/MemoryUtils.cpp b/tools/gdc-psyfork/MemoryUtils.cpp index 2aa73183..f11caa04 100644 --- a/tools/gdc-psyfork/MemoryUtils.cpp +++ b/tools/gdc-psyfork/MemoryUtils.cpp @@ -32,6 +32,7 @@ #include #include #include +#include #define PAGE_SIZE 4096 #define PAGE_ALIGN_UP(x) ((x + PAGE_SIZE - 1) & ~(PAGE_SIZE - 1))