From 97beb51d92895e34c2dc8ff8b859b814d0c50f6c Mon Sep 17 00:00:00 2001 From: Brian Robbins Date: Fri, 12 May 2017 12:22:06 -0700 Subject: [PATCH] Only call EventActivityIdControl ETW function on Windows. (#11549) --- src/mscorlib/src/System/Diagnostics/Eventing/EventSource_CoreCLR.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mscorlib/src/System/Diagnostics/Eventing/EventSource_CoreCLR.cs b/src/mscorlib/src/System/Diagnostics/Eventing/EventSource_CoreCLR.cs index b691dd3..bf9e038 100644 --- a/src/mscorlib/src/System/Diagnostics/Eventing/EventSource_CoreCLR.cs +++ b/src/mscorlib/src/System/Diagnostics/Eventing/EventSource_CoreCLR.cs @@ -33,7 +33,7 @@ namespace System.Diagnostics.Tracing { if (TplEtwProvider.Log != null) TplEtwProvider.Log.SetActivityId(activityId); -#if FEATURE_MANAGED_ETW +#if FEATURE_MANAGED_ETW && PLATFORM_WINDOWS #if FEATURE_ACTIVITYSAMPLING Guid newId = activityId; #endif // FEATURE_ACTIVITYSAMPLING @@ -57,7 +57,7 @@ namespace System.Diagnostics.Tracing } #endif // FEATURE_ACTIVITYSAMPLING } -#endif // FEATURE_MANAGED_ETW +#endif // FEATURE_MANAGED_ETW && PLATFORM_WINDOWS } /// -- 2.7.4