diff --git a/CHANGELOG.md b/CHANGELOG.md index 68708d342c..5d36838f96 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,7 +29,7 @@ This project adheres to [Semantic Versioning](https://semver.org/). - Removed `flock` from `::nix::fcntl` on Solaris. ([#2082](https://github.com/nix-rust/nix/pull/2082)) - Use I/O safety with `copy_file_range`, and expose it on FreeBSD. (#[1906](https://github.com/nix-rust/nix/pull/1906)) -- Added `SO_TS_CLOCK` for FreebSD to `nix::sys::socket::sockopt`. +- Added `SO_TS_CLOCK` for FreeBSD to `nix::sys::socket::sockopt`. ([#2093](https://github.com/nix-rust/nix/pull/2093)) ### Changed diff --git a/src/sys/socket/sockopt.rs b/src/sys/socket/sockopt.rs index d403f91236..44f3ebbc1d 100644 --- a/src/sys/socket/sockopt.rs +++ b/src/sys/socket/sockopt.rs @@ -716,7 +716,7 @@ sockopt_impl!( /// Sets a specific timestamp format instead of the classic `SCM_TIMESTAMP`, /// to follow up after `SO_TIMESTAMP` is set. TsClock, - SetOnly, + Both, libc::SOL_SOCKET, libc::SO_TS_CLOCK, i32