refactor fix using cfg_if! (fix build on Solaris)

This commit is contained in:
Vita Batrla 2020-01-20 19:15:37 +01:00
parent 239a7d9124
commit 5392442869

View file

@ -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;