diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs index 6859e3dead53..3e7f073e6017 100644 --- a/src/unix/bsd/apple/mod.rs +++ b/src/unix/bsd/apple/mod.rs @@ -4066,14 +4066,14 @@ pub const AF_E164: c_int = AF_ISDN; pub const pseudo_AF_KEY: c_int = 29; pub const AF_INET6: c_int = 30; pub const AF_NATM: c_int = 31; -pub const AF_SYSTEM: c_int = 32; +pub const AF_SYSTEM: c_uchar = 32; pub const AF_NETBIOS: c_int = 33; pub const AF_PPP: c_int = 34; pub const pseudo_AF_HDRCMPLT: c_int = 35; pub const AF_IEEE80211: c_int = 37; pub const AF_UTUN: c_int = 38; pub const AF_VSOCK: c_int = 40; -pub const AF_SYS_CONTROL: c_int = 2; +pub const AF_SYS_CONTROL: u16 = 2; pub const SYSPROTO_EVENT: c_int = 1; pub const SYSPROTO_CONTROL: c_int = 2; @@ -4111,7 +4111,7 @@ pub const PF_ISDN: c_int = AF_ISDN; pub const PF_KEY: c_int = pseudo_AF_KEY; pub const PF_INET6: c_int = AF_INET6; pub const PF_NATM: c_int = AF_NATM; -pub const PF_SYSTEM: c_int = AF_SYSTEM; +pub const PF_SYSTEM: c_int = AF_SYSTEM as c_int; pub const PF_NETBIOS: c_int = AF_NETBIOS; pub const PF_PPP: c_int = AF_PPP; pub const PF_VSOCK: c_int = AF_VSOCK;