refactor fix using cfg_if! (fix build on Solaris)
This commit is contained in:
parent
239a7d9124
commit
5392442869
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue