Skip to content

Commit 6813109

Browse files
committed
Auto merge of #514 - DoumanAsh:missing_af_unspec, r=alexcrichton
Add AF_UNSPEC from Apple socket.h [socket.h](https://opensource.apple.com/source/xnu/xnu-792.13.8/bsd/sys/socket.h) of Apple contains this definition so i'm not sure why it is missing from libc. The same goes for other BSD-like OSes... Is there some particular reasons why it is so?
2 parents 8d8264b + 45ba8c1 commit 6813109

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/unix/bsd/apple/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -819,6 +819,7 @@ pub const MINCORE_MODIFIED: ::c_int = 0x4;
819819
pub const MINCORE_REFERENCED_OTHER: ::c_int = 0x8;
820820
pub const MINCORE_MODIFIED_OTHER: ::c_int = 0x10;
821821

822+
pub const AF_UNSPEC: ::c_int = 0;
822823
pub const AF_UNIX: ::c_int = 1;
823824
pub const AF_INET: ::c_int = 2;
824825
pub const AF_INET6: ::c_int = 30;

0 commit comments

Comments
 (0)