Skip to content

Commit

Permalink
Merge pull request #7 from Tim-Zhang/suppress-deprecation-time_t
Browse files Browse the repository at this point in the history
Suppress time_t musl "deprecation"
  • Loading branch information
Tim-Zhang authored Jan 28, 2021
2 parents 6f9886f + 5a6ee62 commit 9442bf3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,8 @@ impl VsockStream {
));
}

// https://github.com/rust-lang/libc/issues/1848
#[cfg_attr(target_env = "musl", allow(deprecated))]
let secs = if dur.as_secs() > time_t::max_value() as u64 {
time_t::max_value()
} else {
Expand Down

0 comments on commit 9442bf3

Please sign in to comment.