Skip to content

Commit 5392442

Browse files
author
Vita Batrla
committed
refactor fix using cfg_if! (fix build on Solaris)
1 parent 239a7d9 commit 5392442

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libstd/sys_common/net.rs

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ cfg_if::cfg_if! {
4444
target_os = "dragonfly", target_os = "freebsd",
4545
target_os = "openbsd", target_os = "netbsd",
4646
target_os = "solaris"))] {
47+
use libc::c_uchar;
4748
type IpV4MultiCastType = c_uchar;
4849
} else {
4950
type IpV4MultiCastType = c_int;

0 commit comments

Comments
 (0)