summaryrefslogtreecommitdiff
path: root/src/unix/bsd/freebsdlike/freebsd/freebsd12/mod.rs
diff options
context:
space:
mode:
authorThomas de Zeeuw <thomasdezeeuw@gmail.com>2020-12-29 12:04:13 +0100
committerThomas de Zeeuw <thomasdezeeuw@gmail.com>2020-12-29 12:04:13 +0100
commit01f7008527c9048bb64957577ceb343d935c165a (patch)
treecf5478c6e50027085c1d354daf339ebb20060caf /src/unix/bsd/freebsdlike/freebsd/freebsd12/mod.rs
parent6e7a919ce35d7a09666579b47e7d4206bb95afe5 (diff)
downloadrust-libc-01f7008527c9048bb64957577ceb343d935c165a.tar.gz
Add SO_DOMAIN constant to FreeBSD
Diffstat (limited to 'src/unix/bsd/freebsdlike/freebsd/freebsd12/mod.rs')
-rw-r--r--src/unix/bsd/freebsdlike/freebsd/freebsd12/mod.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/unix/bsd/freebsdlike/freebsd/freebsd12/mod.rs b/src/unix/bsd/freebsdlike/freebsd/freebsd12/mod.rs
index 89729a8162..e7cd9e4f76 100644
--- a/src/unix/bsd/freebsdlike/freebsd/freebsd12/mod.rs
+++ b/src/unix/bsd/freebsdlike/freebsd/freebsd12/mod.rs
@@ -200,6 +200,8 @@ pub const F_SEAL_WRITE: ::c_int = 0x0008;
pub const GRND_NONBLOCK: ::c_uint = 0x1;
pub const GRND_RANDOM: ::c_uint = 0x2;
+pub const SO_DOMAIN: ::c_int = 0x1019;
+
cfg_if! {
if #[cfg(not(freebsd13))] {
pub const ELAST: ::c_int = 96;
@@ -237,7 +239,7 @@ extern "C" {
pub fn getrandom(
buf: *mut ::c_void,
buflen: ::size_t,
- flags: ::c_uint
+ flags: ::c_uint,
) -> ::ssize_t;
}