diff --git a/libc-test/build.rs b/libc-test/build.rs index a4645ae36b79ccdb681246a2d8a3c351e8ca1666..518660bc4dea0e36722d0ec3eb7c00c99dfde2cf 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -1747,6 +1747,7 @@ fn test_freebsd(target: &str) { | "IP_RECVORIGDSTADDR" | "IPV6_ORIGDSTADDR" | "IPV6_RECVORIGDSTADDR" + | "NI_NUMERICSCOPE" if Some(11) == freebsd_ver => { true @@ -1772,6 +1773,7 @@ fn test_freebsd(target: &str) { | "PD_CLOEXEC" | "PD_ALLOWED_AT_FORK" | "IP_RSS_LISTEN_BUCKET" + | "NI_NUMERICSCOPE" if Some(10) == freebsd_ver => { true diff --git a/src/unix/bsd/freebsdlike/freebsd/mod.rs b/src/unix/bsd/freebsdlike/freebsd/mod.rs index d9dc4f2f7459abd59aba5104f1f58f4dce920fa5..db36184ea8bf98c1ec72387703f9081891a5af50 100644 --- a/src/unix/bsd/freebsdlike/freebsd/mod.rs +++ b/src/unix/bsd/freebsdlike/freebsd/mod.rs @@ -349,6 +349,13 @@ pub const RLIMIT_UMTXP: ::c_int = 14; #[deprecated(since = "0.2.64", note = "Not stable across OS versions")] pub const RLIM_NLIMITS: ::rlim_t = 15; +pub const NI_NOFQDN: ::c_int = 0x00000001; +pub const NI_NUMERICHOST: ::c_int = 0x00000002; +pub const NI_NAMEREQD: ::c_int = 0x00000004; +pub const NI_NUMERICSERV: ::c_int = 0x00000008; +pub const NI_DGRAM: ::c_int = 0x00000010; +pub const NI_NUMERICSCOPE: ::c_int = 0x00000020; + pub const Q_GETQUOTA: ::c_int = 0x700; pub const Q_SETQUOTA: ::c_int = 0x800;