Skip to content

Commit 510badd

Browse files
authored
Merge pull request #1853 from coolreader18/nameinfo-consts
Add more constants for getnameinfo on android
2 parents e4a1f26 + ec5c0ae commit 510badd

File tree

1 file changed

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

1 file changed

+7
-0
lines changed

src/unix/linux_like/android/mod.rs

+7
Original file line numberDiff line numberDiff line change
@@ -1062,6 +1062,13 @@ pub const O_NDELAY: ::c_int = 0x800;
10621062
pub const O_DSYNC: ::c_int = 4096;
10631063

10641064
pub const NI_MAXHOST: ::size_t = 1025;
1065+
pub const NI_MAXSERV: ::size_t = 32;
1066+
1067+
pub const NI_NOFQDN: ::c_int = 0x00000001;
1068+
pub const NI_NUMERICHOST: ::c_int = 0x00000002;
1069+
pub const NI_NAMEREQD: ::c_int = 0x00000004;
1070+
pub const NI_NUMERICSERV: ::c_int = 0x00000008;
1071+
pub const NI_DGRAM: ::c_int = 0x00000010;
10651072

10661073
pub const NCCS: usize = 19;
10671074
pub const TCSBRKP: ::c_int = 0x5425;

0 commit comments

Comments
 (0)