Skip to content

Commit 92bb592

Browse files
siegfriedtgross35
authored andcommitted
Fix AF_SYSTEM and AF_SYS_CONTROL
1 parent 268e1b3 commit 92bb592

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/unix/bsd/apple/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4066,14 +4066,14 @@ pub const AF_E164: c_int = AF_ISDN;
40664066
pub const pseudo_AF_KEY: c_int = 29;
40674067
pub const AF_INET6: c_int = 30;
40684068
pub const AF_NATM: c_int = 31;
4069-
pub const AF_SYSTEM: c_int = 32;
4069+
pub const AF_SYSTEM: c_uchar = 32;
40704070
pub const AF_NETBIOS: c_int = 33;
40714071
pub const AF_PPP: c_int = 34;
40724072
pub const pseudo_AF_HDRCMPLT: c_int = 35;
40734073
pub const AF_IEEE80211: c_int = 37;
40744074
pub const AF_UTUN: c_int = 38;
40754075
pub const AF_VSOCK: c_int = 40;
4076-
pub const AF_SYS_CONTROL: c_int = 2;
4076+
pub const AF_SYS_CONTROL: u16 = 2;
40774077

40784078
pub const SYSPROTO_EVENT: c_int = 1;
40794079
pub const SYSPROTO_CONTROL: c_int = 2;
@@ -4111,7 +4111,7 @@ pub const PF_ISDN: c_int = AF_ISDN;
41114111
pub const PF_KEY: c_int = pseudo_AF_KEY;
41124112
pub const PF_INET6: c_int = AF_INET6;
41134113
pub const PF_NATM: c_int = AF_NATM;
4114-
pub const PF_SYSTEM: c_int = AF_SYSTEM;
4114+
pub const PF_SYSTEM: c_int = AF_SYSTEM as c_int;
41154115
pub const PF_NETBIOS: c_int = AF_NETBIOS;
41164116
pub const PF_PPP: c_int = AF_PPP;
41174117
pub const PF_VSOCK: c_int = AF_VSOCK;

0 commit comments

Comments
 (0)