Skip to content

Commit 3124bb6

Browse files
siegfriedtgross35
authored andcommitted
Fix AF_SYSTEM and AF_SYS_CONTROL
1 parent 404145f commit 3124bb6

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
@@ -2600,14 +2600,14 @@ pub const AF_E164: c_int = AF_ISDN;
26002600
pub const pseudo_AF_KEY: c_int = 29;
26012601
pub const AF_INET6: c_int = 30;
26022602
pub const AF_NATM: c_int = 31;
2603-
pub const AF_SYSTEM: c_int = 32;
2603+
pub const AF_SYSTEM: c_uchar = 32;
26042604
pub const AF_NETBIOS: c_int = 33;
26052605
pub const AF_PPP: c_int = 34;
26062606
pub const pseudo_AF_HDRCMPLT: c_int = 35;
26072607
pub const AF_IEEE80211: c_int = 37;
26082608
pub const AF_UTUN: c_int = 38;
26092609
pub const AF_VSOCK: c_int = 40;
2610-
pub const AF_SYS_CONTROL: c_int = 2;
2610+
pub const AF_SYS_CONTROL: u16 = 2;
26112611

26122612
pub const SYSPROTO_EVENT: c_int = 1;
26132613
pub const SYSPROTO_CONTROL: c_int = 2;
@@ -2645,7 +2645,7 @@ pub const PF_ISDN: c_int = AF_ISDN;
26452645
pub const PF_KEY: c_int = pseudo_AF_KEY;
26462646
pub const PF_INET6: c_int = AF_INET6;
26472647
pub const PF_NATM: c_int = AF_NATM;
2648-
pub const PF_SYSTEM: c_int = AF_SYSTEM;
2648+
pub const PF_SYSTEM: c_int = AF_SYSTEM as c_int;
26492649
pub const PF_NETBIOS: c_int = AF_NETBIOS;
26502650
pub const PF_PPP: c_int = AF_PPP;
26512651
pub const PF_VSOCK: c_int = AF_VSOCK;

0 commit comments

Comments
 (0)