refactor fix using cfg_if! (fix build on Solaris)
diff --git a/src/libstd/sys_common/net.rs b/src/libstd/sys_common/net.rs
index 7e603a8..135e830 100644
--- a/src/libstd/sys_common/net.rs
+++ b/src/libstd/sys_common/net.rs
@@ -44,6 +44,7 @@
         target_os = "dragonfly", target_os = "freebsd",
         target_os = "openbsd", target_os = "netbsd",
         target_os = "solaris"))] {
+        use libc::c_uchar;
         type IpV4MultiCastType = c_uchar;
     } else {
         type IpV4MultiCastType = c_int;