Merge pull request #1464 from akoeplinger/fix-portable-target
[mono.git] / mono / utils / networking-posix.c
index 6a7a4b295ae7d58384d89b867197b5b8072acf33..2fe8da9d9f8fa855d4ba6b1dfbdc189f9d8709a4 100644 (file)
@@ -302,15 +302,6 @@ mono_get_local_interfaces (int family, int *interface_count)
        return result;
 }
 
-#else
-
-void *
-mono_get_local_interfaces (int family, int *interface_count)
-{
-       *interface_count = 0;
-       return NULL;
-}
-
 #endif
 
 #ifdef HAVE_GETNAMEINFO
@@ -334,3 +325,18 @@ mono_networking_addr_to_str (MonoAddress *address, char *buffer, socklen_t bufle
 }
 
 #endif
+
+#ifndef _WIN32
+// These are already defined in networking-windows.c for Windows
+void
+mono_networking_init (void)
+{
+       //nothing really
+}
+
+void
+mono_networking_shutdown (void)
+{
+       //nothing really
+}
+#endif
\ No newline at end of file