From 53924428692371a175afeaaa5fa410c44f0e06ae Mon Sep 17 00:00:00 2001 From: Vita Batrla Date: Mon, 20 Jan 2020 19:15:37 +0100 Subject: [PATCH] refactor fix using cfg_if! (fix build on Solaris) --- src/libstd/sys_common/net.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libstd/sys_common/net.rs b/src/libstd/sys_common/net.rs index 7e603a8682ba..135e8308afae 100644 --- a/src/libstd/sys_common/net.rs +++ b/src/libstd/sys_common/net.rs @@ -44,6 +44,7 @@ cfg_if::cfg_if! { 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;