diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b8292bfbc..29be76daf1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,7 +32,7 @@ This project adheres to [Semantic Versioning](https://semver.org/). - Added `MSG_WAITFORONE` to `MsgFlags` on Android, Fuchsia, Linux, NetBSD, FreeBSD, OpenBSD, and Solaris. ([#2014](https://github.com/nix-rust/nix/pull/2014)) -- 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