mirror of
https://github.com/asmjit/asmjit.git
synced 2025-12-18 21:14:35 +03:00
[Bug] Fixed a bug introduced by the previous commit (enable /dev/shm on non-android targets)
This commit is contained in:
@@ -359,7 +359,7 @@ public:
|
|||||||
return kErrorOk;
|
return kErrorOk;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#if !ASMJIT_VM_SHM_AVAILABLE
|
#if ASMJIT_VM_SHM_AVAILABLE
|
||||||
else {
|
else {
|
||||||
_tmpName.assignFormat(kShmFormat, (unsigned long long)bits);
|
_tmpName.assignFormat(kShmFormat, (unsigned long long)bits);
|
||||||
_fd = ::shm_open(_tmpName.data(), O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR);
|
_fd = ::shm_open(_tmpName.data(), O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR);
|
||||||
@@ -383,7 +383,7 @@ public:
|
|||||||
FileType type = _fileType;
|
FileType type = _fileType;
|
||||||
_fileType = kFileTypeNone;
|
_fileType = kFileTypeNone;
|
||||||
|
|
||||||
#if !ASMJIT_VM_SHM_AVAILABLE
|
#if ASMJIT_VM_SHM_AVAILABLE
|
||||||
if (type == kFileTypeShm) {
|
if (type == kFileTypeShm) {
|
||||||
::shm_unlink(_tmpName.data());
|
::shm_unlink(_tmpName.data());
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user