Skip to content

Commit

Permalink
refactor fix using cfg_if! (fix build on Solaris)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vita Batrla committed Jan 20, 2020
1 parent 239a7d9 commit 5392442
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libstd/sys_common/net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5392442

Please sign in to comment.