(part of commit
9379c66 from Unity-Technologies/bdwgc)
Issue #173 (bdwgc).
* os_dep.c [USE_MUNMAP && !MSWIN32 && !MSWINCE && SN_TARGET_PS3]:
Include sys/mman.h instead of sys/memory.h.
* os_dep.c [USE_MUNMAP && !USE_WINALLOC && SN_TARGET_PS3]
(GC_unmap): Call ps3_free_mem() instead of mmap().
#if !defined(MSWIN32) && !defined(MSWINCE)
# include <unistd.h>
-# include <sys/mman.h>
+# ifdef SN_TARGET_PS3
+# include <sys/memory.h>
+# else
+# include <sys/mman.h>
+# endif
# include <sys/stat.h>
# include <sys/types.h>
#endif
start_addr += free_len;
len -= free_len;
}
+# elif defined(SN_TARGET_PS3)
+ ps3_free_mem(start_addr, len);
# else
/* We immediately remap it to prevent an intervening mmap from */
/* accidentally grabbing the same address space. */