mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-11 20:28:59 +02:00
sysconf stub cuz crash(?) + some stderrp stuff
This commit is contained in:
parent
4d03401bba
commit
81f2ba5f9e
14 changed files with 506 additions and 73 deletions
|
|
@ -495,9 +495,12 @@ class HostMemory::Impl {
|
|||
public:
|
||||
explicit Impl(size_t backing_size_, size_t virtual_size_)
|
||||
: backing_size{backing_size_}, virtual_size{virtual_size_} {
|
||||
#ifdef __OPENORBIS__
|
||||
|
||||
#else
|
||||
long page_size = sysconf(_SC_PAGESIZE);
|
||||
ASSERT_MSG(page_size == 0x1000, "page size {:#x} is incompatible with 4K paging",
|
||||
page_size);
|
||||
ASSERT_MSG(page_size == 0x1000, "page size {:#x} is incompatible with 4K paging", page_size);
|
||||
#endif
|
||||
// Backing memory initialization
|
||||
#if defined(__sun__) || defined(__HAIKU__) || defined(__NetBSD__) || defined(__DragonFly__)
|
||||
fd = shm_open_anon(O_RDWR | O_CREAT | O_EXCL | O_NOFOLLOW, 0600);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue