Skip to content

Commit 2a9c0c3

Browse files
committed
Add AI_* constants from netdb.h for macOS.
1 parent ed8309b commit 2a9c0c3

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/unix/bsd/apple/mod.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2147,6 +2147,19 @@ pub const PRIO_DARWIN_NONUI: ::c_int = 0x1001;
21472147

21482148
pub const SEM_FAILED: *mut sem_t = -1isize as *mut ::sem_t;
21492149

2150+
pub const AI_PASSIVE: ::c_int = 0x00000001;
2151+
pub const AI_CANONNAME: ::c_int = 0x00000002;
2152+
pub const AI_NUMERICHOST: ::c_int = 0x00000004;
2153+
pub const AI_NUMERICSERV: ::c_int = 0x00001000;
2154+
pub const AI_MASK: ::c_int = AI_PASSIVE | AI_CANONNAME | AI_NUMERICHOST |
2155+
AI_NUMERICSERV | AI_ADDRCONFIG;
2156+
pub const AI_ALL: ::c_int = 0x00000100;
2157+
pub const AI_V4MAPPED_CFG: ::c_int = 0x00000200;
2158+
pub const AI_ADDRCONFIG: ::c_int = 0x00000400;
2159+
pub const AI_V4MAPPED: ::c_int = 0x00000800;
2160+
pub const AI_DEFAULT: ::c_int = AI_V4MAPPED_CFG | AI_ADDRCONFIG;
2161+
pub const AI_UNUSABLE: ::c_int = 0x10000000;
2162+
21502163
pub const SIGEV_NONE: ::c_int = 0;
21512164
pub const SIGEV_SIGNAL: ::c_int = 1;
21522165
pub const SIGEV_THREAD: ::c_int = 3;

0 commit comments

Comments
 (0)