aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Memory/MemoryManagerUnixHelper.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ryujinx.Memory/MemoryManagerUnixHelper.cs')
-rw-r--r--src/Ryujinx.Memory/MemoryManagerUnixHelper.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Ryujinx.Memory/MemoryManagerUnixHelper.cs b/src/Ryujinx.Memory/MemoryManagerUnixHelper.cs
index 204f1ca4..a7b207ab 100644
--- a/src/Ryujinx.Memory/MemoryManagerUnixHelper.cs
+++ b/src/Ryujinx.Memory/MemoryManagerUnixHelper.cs
@@ -1,8 +1,11 @@
using System;
using System.Runtime.InteropServices;
+using System.Runtime.Versioning;
namespace Ryujinx.Memory
{
+ [SupportedOSPlatform("linux")]
+ [SupportedOSPlatform("macos")]
public static partial class MemoryManagerUnixHelper
{
[Flags]
@@ -41,6 +44,8 @@ namespace Ryujinx.Memory
O_SYNC = 256,
}
+ public const IntPtr MAP_FAILED = -1;
+
private const int MAP_ANONYMOUS_LINUX_GENERIC = 0x20;
private const int MAP_NORESERVE_LINUX_GENERIC = 0x4000;
private const int MAP_UNLOCKED_LINUX_GENERIC = 0x80000;