diff options
-rw-r--r-- | mcs/class/System/System.Diagnostics/TraceListener.cs | 5 | ||||
-rw-r--r-- | mcs/class/System/System.Security.Cryptography.X509Certificates/X509Certificate2.cs | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/mcs/class/System/System.Diagnostics/TraceListener.cs b/mcs/class/System/System.Diagnostics/TraceListener.cs index bab828b89c2..e91e2e4166c 100644 --- a/mcs/class/System/System.Diagnostics/TraceListener.cs +++ b/mcs/class/System/System.Diagnostics/TraceListener.cs @@ -94,7 +94,6 @@ namespace System.Diagnostics { private int indentSize = 4; #if NET_2_0 - static readonly string [] empty_array = new string [0]; [ThreadStatic] private StringDictionary attributes = new StringDictionary (); [ThreadStatic] @@ -104,6 +103,10 @@ namespace System.Diagnostics { #endif #endif +#if NET_2_0
+ static readonly string [] empty_array = new string [0]; +#endif + private string name = null; private bool needIndent = true; diff --git a/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Certificate2.cs b/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Certificate2.cs index 2078ec09d4c..bd05a9331a3 100644 --- a/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Certificate2.cs +++ b/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Certificate2.cs @@ -31,9 +31,11 @@ using System.IO; using System.Text; +#if SECURITY_DEP using Mono.Security; using Mono.Security.Cryptography; using MX = Mono.Security.X509; +#endif namespace System.Security.Cryptography.X509Certificates { |