Skip to content

Commit b8e6454

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

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/unix/bsd/apple/mod.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1914,6 +1914,13 @@ pub const IUTF8: ::tcflag_t = 0x00004000;
19141914
pub const CRTSCTS: ::tcflag_t = 0x00030000;
19151915

19161916
pub const NI_MAXHOST: ::socklen_t = 1025;
1917+
pub const NI_MAXSERV: ::socklen_t = 32;
1918+
pub const NI_NOFQDN: ::c_int = 0x00000001;
1919+
pub const NI_NUMERICHOST: ::c_int = 0x00000002;
1920+
pub const NI_NAMEREQD: ::c_int = 0x00000004;
1921+
pub const NI_NUMERICSERV: ::c_int = 0x00000008;
1922+
pub const NI_NUMERICSCOPE: ::c_int = 0x00000100;
1923+
pub const NI_DGRAM: ::c_int = 0x00000010;
19171924

19181925
pub const Q_GETQUOTA: ::c_int = 0x300;
19191926
pub const Q_SETQUOTA: ::c_int = 0x400;

0 commit comments

Comments
 (0)