Skip to content

Commit

Permalink
Add SO_DOMAIN constant to FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomasdezeeuw committed Dec 29, 2020
1 parent 6e7a919 commit 01f7008
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/unix/bsd/freebsdlike/freebsd/freebsd12/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -237,7 +239,7 @@ extern "C" {
pub fn getrandom(
buf: *mut ::c_void,
buflen: ::size_t,
flags: ::c_uint
flags: ::c_uint,
) -> ::ssize_t;
}

Expand Down

0 comments on commit 01f7008

Please sign in to comment.