diff options
author | kobalicek <kobalicek.petr@gmail.com> | 2021-05-18 16:17:22 +0300 |
---|---|---|
committer | kobalicek <kobalicek.petr@gmail.com> | 2021-05-18 16:17:22 +0300 |
commit | 78de7d9c81a6ad1b0f732b52666960d9be1c6461 (patch) | |
tree | 7814611745e4424284f34357213ff0b6a0e9b063 | |
parent | 8ee4c76ee3bf4c33478347caefc5d4f7f0e97992 (diff) |
[Bug] Fixed a bug introduced by the previous commit (enable /dev/shm on non-android targets)
-rw-r--r-- | src/asmjit/core/virtmem.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/asmjit/core/virtmem.cpp b/src/asmjit/core/virtmem.cpp index bcd1ff7..4ac00e6 100644 --- a/src/asmjit/core/virtmem.cpp +++ b/src/asmjit/core/virtmem.cpp @@ -359,7 +359,7 @@ public: return kErrorOk; } } -#if !ASMJIT_VM_SHM_AVAILABLE +#if ASMJIT_VM_SHM_AVAILABLE else { _tmpName.assignFormat(kShmFormat, (unsigned long long)bits); _fd = ::shm_open(_tmpName.data(), O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR); @@ -383,7 +383,7 @@ public: FileType type = _fileType; _fileType = kFileTypeNone; -#if !ASMJIT_VM_SHM_AVAILABLE +#if ASMJIT_VM_SHM_AVAILABLE if (type == kFileTypeShm) { ::shm_unlink(_tmpName.data()); return; |