Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update use of libc::timespec to prepare for future libc version #363

Merged
merged 1 commit into from
Nov 29, 2022

Commits on Nov 28, 2022

  1. Update use of libc::timespec to prepare for future libc version

    In a future release of the `libc` crate, `libc::timespec` will contain
    private padding fields on `*-linux-musl` targets and so the struct will
    no longer be able to be created using the literal initialization syntax.
    
    Update the use of `libc::timespec` to create a value by calling
    `std::mem::zeroed()` first and then setting the `tv_sec` and `tv_nsec`
    fields manually which works with both current versions of `libc` as well
    as the future version which contains that change.
    wesleywiser committed Nov 28, 2022
    Configuration menu
    Copy the full SHA
    246ec6d View commit details
    Browse the repository at this point in the history