Skip to content

Commit 6eca767

Browse files
committed
Add AI_* constants on android; taken from netdb.h
1 parent 4f11029 commit 6eca767

File tree

1 file changed

+15
-0
lines changed
  • src/unix/linux_like/android

1 file changed

+15
-0
lines changed

src/unix/linux_like/android/mod.rs

+15
Original file line numberDiff line numberDiff line change
@@ -1157,6 +1157,21 @@ pub const RTLD_NOLOAD: ::c_int = 0x4;
11571157

11581158
pub const SEM_FAILED: *mut sem_t = 0 as *mut sem_t;
11591159

1160+
pub const AI_PASSIVE: ::c_int = 0x00000001;
1161+
pub const AI_CANONNAME: ::c_int = 0x00000002;
1162+
pub const AI_NUMERICHOST: ::c_int = 0x00000004;
1163+
pub const AI_NUMERICSERV: ::c_int = 0x00000008;
1164+
pub const AI_MASK: ::c_int = AI_PASSIVE
1165+
| AI_CANONNAME
1166+
| AI_NUMERICHOST
1167+
| AI_NUMERICSERV
1168+
| AI_ADDRCONFIG;
1169+
pub const AI_ALL: ::c_int = 0x00000100;
1170+
pub const AI_V4MAPPED_CFG: ::c_int = 0x00000200;
1171+
pub const AI_ADDRCONFIG: ::c_int = 0x00000400;
1172+
pub const AI_V4MAPPED: ::c_int = 0x00000800;
1173+
pub const AI_DEFAULT: ::c_int = AI_V4MAPPED_CFG | AI_ADDRCONFIG;
1174+
11601175
pub const LINUX_REBOOT_MAGIC1: ::c_int = 0xfee1dead;
11611176
pub const LINUX_REBOOT_MAGIC2: ::c_int = 672274793;
11621177
pub const LINUX_REBOOT_MAGIC2A: ::c_int = 85072278;

0 commit comments

Comments
 (0)