Commit 22625f72 authored by thoughtpolice's avatar thoughtpolice

Fix build for i386/windows.

symbol_extras is only part of ObjectCode on certain platforms.
Signed-off-by: thoughtpolice's avatarAustin Seipp <aseipp@pobox.com>
parent 95ebff9a
......@@ -2046,9 +2046,8 @@ mmap_again:
void freeObjectCode (ObjectCode *oc)
{
int pagesize, size, r;
#ifdef USE_MMAP
int pagesize, size, r;
pagesize = getpagesize();
size = ROUND_UP(oc->fileSize, pagesize);
......@@ -2067,7 +2066,13 @@ void freeObjectCode (ObjectCode *oc)
#else
stgFree(oc->image);
#if defined(powerpc_HOST_ARCH) || defined(x86_64_HOST_ARCH) || defined(arm_HOST_ARCH)
#if !defined(x86_64_HOST_ARCH) || !defined(mingw32_HOST_OS)
stgFree(oc->symbol_extras);
#endif
#endif
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment