Add SO_DOMAIN constant to FreeBSD

This commit is contained in:
Thomas de Zeeuw 2020-12-29 12:04:13 +01:00
parent 6e7a919ce3
commit 01f7008527
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}