Style fixes for PR feedback
authorAndi McClure <andi.mcclure@xamarin.com>
Fri, 31 Mar 2017 15:53:53 +0000 (11:53 -0400)
committerAndi McClure <andi.mcclure@xamarin.com>
Fri, 31 Mar 2017 15:53:53 +0000 (11:53 -0400)
mcs/class/System/System.Net.NetworkInformation/NetworkInterface.cs

index 8d74999fb48089debb2872e70ba3cb7394680052..a97bcc8049c8a789e509a37c3f25efcf8e28a993 100644 (file)
@@ -82,16 +82,7 @@ namespace System.Net.NetworkInformation {
        {
                internal abstract class UnixNetworkInterfaceAPI : NetworkInterfaceFactory
                {
-#if !ORBIS
-                       [DllImport("libc")]
-                       public static extern int if_nametoindex(string ifname);
-
-                       [DllImport ("libc")]
-                       protected static extern int getifaddrs (out IntPtr ifap);
-
-                       [DllImport ("libc")]
-                       protected static extern void freeifaddrs (IntPtr ifap);
-#else
+#if ORBIS
                        public static int if_nametoindex(string ifname)
                        {
                                throw new PlatformNotSupportedException ();
@@ -106,6 +97,15 @@ namespace System.Net.NetworkInformation {
                        {
                                throw new PlatformNotSupportedException ();
                        }
+#else
+                       [DllImport("libc")]
+                       public static extern int if_nametoindex(string ifname);
+
+                       [DllImport ("libc")]
+                       protected static extern int getifaddrs (out IntPtr ifap);
+
+                       [DllImport ("libc")]
+                       protected static extern void freeifaddrs (IntPtr ifap);
 #endif
                }