[metadata] Disable three icalls on netcore monodroid (#33513)
authormonojenkins <jo.shields+jenkins@xamarin.com>
Thu, 12 Mar 2020 18:18:04 +0000 (14:18 -0400)
committerGitHub <noreply@github.com>
Thu, 12 Mar 2020 18:18:04 +0000 (19:18 +0100)
They aren't used there.

Co-authored-by: akoeplinger <akoeplinger@users.noreply.github.com>
src/mono/mono/metadata/icall-decl.h
src/mono/mono/metadata/icall.c

index dd86ccd..34e9e65 100644 (file)
@@ -195,6 +195,7 @@ ICALL_EXPORT void ves_icall_System_Runtime_RuntimeImports_ZeroMemory (guint8*, g
 #endif
 ICALL_EXPORT void ves_icall_System_Runtime_RuntimeImports_ecvt_s(char*, size_t, double, int, int*, int*);
 
+#if !defined(ENABLE_NETCORE)
 #if defined(ENABLE_MONODROID) || defined(ENABLE_MONOTOUCH) || defined(TARGET_WASM)
 ICALL_EXPORT gpointer ves_icall_System_IO_Compression_DeflateStreamNative_CreateZStream (gint32 compress, MonoBoolean gzip, gpointer feeder, gpointer data);
 ICALL_EXPORT gint32 ves_icall_System_IO_Compression_DeflateStreamNative_CloseZStream (gpointer stream);
@@ -208,6 +209,7 @@ ICALL_EXPORT gpointer ves_icall_System_Net_NetworkInformation_LinuxNetworkChange
 ICALL_EXPORT gint32 ves_icall_System_Net_NetworkInformation_LinuxNetworkChange_ReadEvents (gpointer sock, gpointer buffer, gint32 count, gint32 size);
 ICALL_EXPORT gpointer ves_icall_System_Net_NetworkInformation_LinuxNetworkChange_CloseNLSocket (gpointer sock);
 #endif
+#endif
 
 ICALL_EXPORT MonoBoolean ves_icall_Microsoft_Win32_NativeMethods_CloseProcess (gpointer handle);
 ICALL_EXPORT gpointer ves_icall_Microsoft_Win32_NativeMethods_GetCurrentProcess (void);
index 5c0dfcb..86ce68c 100644 (file)
@@ -9718,6 +9718,7 @@ ves_icall_System_Environment_get_ProcessorCount (void)
        return mono_cpu_count ();
 }
 
+#if !defined(ENABLE_NETCORE)
 #if defined(ENABLE_MONODROID)
 
 G_EXTERN_C gpointer CreateNLSocket (void);
@@ -9743,6 +9744,7 @@ ves_icall_System_Net_NetworkInformation_LinuxNetworkChange_CloseNLSocket (gpoint
 }
 
 #endif
+#endif
 
 // Generate wrappers.