mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-24 22:34:54 +00:00
Common: Use more portable invocation of shm_open
This commit is contained in:
parent
7085fcc8d6
commit
b6d1512587
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue