diff options
author | Chris Spencer <spencercw@gmail.com> | 2023-06-06 10:57:08 +0100 |
---|---|---|
committer | Chris Spencer <spencercw@gmail.com> | 2023-07-17 10:27:37 +0100 |
commit | 87190dab193d3ceaf8443556adfeba35177bdd24 (patch) | |
tree | d041f77b3b82c2fed7fa6a6634f4cb7c9f132c33 /src/sys/socket/sockopt.rs | |
parent | c3e6e6a14244d68a9715ff75dc844d6c856049b9 (diff) | |
download | nix-87190dab193d3ceaf8443556adfeba35177bdd24.zip |
Enable socket timestamping options on Android
Diffstat (limited to 'src/sys/socket/sockopt.rs')
-rw-r--r-- | src/sys/socket/sockopt.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sys/socket/sockopt.rs b/src/sys/socket/sockopt.rs index d5bcda4c..0d675ffb 100644 --- a/src/sys/socket/sockopt.rs +++ b/src/sys/socket/sockopt.rs @@ -683,7 +683,7 @@ sockopt_impl!( libc::IP6T_SO_ORIGINAL_DST, libc::sockaddr_in6 ); -#[cfg(target_os = "linux")] +#[cfg(any(target_os = "android", target_os = "linux"))] sockopt_impl!( /// Specifies exact type of timestamping information collected by the kernel /// [Further reading](https://www.kernel.org/doc/html/latest/networking/timestamping.html) @@ -702,7 +702,7 @@ sockopt_impl!( libc::SO_TIMESTAMP, bool ); -#[cfg(target_os = "linux")] +#[cfg(any(target_os = "android", target_os = "linux"))] sockopt_impl!( /// Enable or disable the receiving of the `SO_TIMESTAMPNS` control message. ReceiveTimestampns, |