Skip to content

Commit 01f7008

Browse files
committed
Add SO_DOMAIN constant to FreeBSD
1 parent 6e7a919 commit 01f7008

File tree

1 file changed

+3
-1
lines changed
  • src/unix/bsd/freebsdlike/freebsd/freebsd12

1 file changed

+3
-1
lines changed

src/unix/bsd/freebsdlike/freebsd/freebsd12/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,8 @@ pub const F_SEAL_WRITE: ::c_int = 0x0008;
200200
pub const GRND_NONBLOCK: ::c_uint = 0x1;
201201
pub const GRND_RANDOM: ::c_uint = 0x2;
202202

203+
pub const SO_DOMAIN: ::c_int = 0x1019;
204+
203205
cfg_if! {
204206
if #[cfg(not(freebsd13))] {
205207
pub const ELAST: ::c_int = 96;
@@ -237,7 +239,7 @@ extern "C" {
237239
pub fn getrandom(
238240
buf: *mut ::c_void,
239241
buflen: ::size_t,
240-
flags: ::c_uint
242+
flags: ::c_uint,
241243
) -> ::ssize_t;
242244
}
243245

0 commit comments

Comments
 (0)