diff --git a/mcs/class/System/System.Net/ServicePointManager.cs b/mcs/class/System/System.Net/ServicePointManager.cs index 56d682bd4025..e211e2a7fb55 100644 --- a/mcs/class/System/System.Net/ServicePointManager.cs +++ b/mcs/class/System/System.Net/ServicePointManager.cs @@ -132,7 +132,7 @@ public override bool Equals (object obj) { // Fields public const int DefaultNonPersistentConnectionLimit = 4; -#if MOBILE +#if MOBILE && !UNITY_AOT public const int DefaultPersistentConnectionLimit = 10; #else public const int DefaultPersistentConnectionLimit = 2;