mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-23 09:41:15 +00:00
Common: Use more portable invocation of shm_open
This commit is contained in:
parent
2eb553fdb7
commit
a6437f629c
@ -63,7 +63,7 @@ void MemArena::GrabSHMSegment(size_t size)
|
|||||||
#else
|
#else
|
||||||
for (int i = 0; i < 10000; i++)
|
for (int i = 0; i < 10000; i++)
|
||||||
{
|
{
|
||||||
std::string file_name = StringFromFormat("dolphinmem.%d", i);
|
std::string file_name = StringFromFormat("/dolphinmem.%d", i);
|
||||||
fd = shm_open(file_name.c_str(), O_RDWR | O_CREAT | O_EXCL, 0600);
|
fd = shm_open(file_name.c_str(), O_RDWR | O_CREAT | O_EXCL, 0600);
|
||||||
if (fd != -1)
|
if (fd != -1)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user