Skip to content

Commit 15096ec

Browse files
siegfriedtgross35
authored andcommitted
Fix AF_SYSTEM and AF_SYS_CONTROL
1 parent e8b0152 commit 15096ec

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
@@ -4072,14 +4072,14 @@ pub const AF_E164: c_int = AF_ISDN;
40724072
pub const pseudo_AF_KEY: c_int = 29;
40734073
pub const AF_INET6: c_int = 30;
40744074
pub const AF_NATM: c_int = 31;
4075-
pub const AF_SYSTEM: c_int = 32;
4075+
pub const AF_SYSTEM: c_uchar = 32;
40764076
pub const AF_NETBIOS: c_int = 33;
40774077
pub const AF_PPP: c_int = 34;
40784078
pub const pseudo_AF_HDRCMPLT: c_int = 35;
40794079
pub const AF_IEEE80211: c_int = 37;
40804080
pub const AF_UTUN: c_int = 38;
40814081
pub const AF_VSOCK: c_int = 40;
4082-
pub const AF_SYS_CONTROL: c_int = 2;
4082+
pub const AF_SYS_CONTROL: u16 = 2;
40834083

40844084
pub const SYSPROTO_EVENT: c_int = 1;
40854085
pub const SYSPROTO_CONTROL: c_int = 2;
@@ -4117,7 +4117,7 @@ pub const PF_ISDN: c_int = AF_ISDN;
41174117
pub const PF_KEY: c_int = pseudo_AF_KEY;
41184118
pub const PF_INET6: c_int = AF_INET6;
41194119
pub const PF_NATM: c_int = AF_NATM;
4120-
pub const PF_SYSTEM: c_int = AF_SYSTEM;
4120+
pub const PF_SYSTEM: c_int = AF_SYSTEM as c_int;
41214121
pub const PF_NETBIOS: c_int = AF_NETBIOS;
41224122
pub const PF_PPP: c_int = AF_PPP;
41234123
pub const PF_VSOCK: c_int = AF_VSOCK;

0 commit comments

Comments
 (0)