From 01f7008527c9048bb64957577ceb343d935c165a Mon Sep 17 00:00:00 2001 From: Thomas de Zeeuw Date: Tue, 29 Dec 2020 12:04:13 +0100 Subject: [PATCH] Add SO_DOMAIN constant to FreeBSD --- src/unix/bsd/freebsdlike/freebsd/freebsd12/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/unix/bsd/freebsdlike/freebsd/freebsd12/mod.rs b/src/unix/bsd/freebsdlike/freebsd/freebsd12/mod.rs index 89729a81623b5..e7cd9e4f7610f 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; }