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 #528

Merged
merged 1 commit into from
Nov 26, 2022

Commits on Nov 23, 2022

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

    In a future release of the `libc` crate, `libc::timespec` will contains
    private padding fields on 32-bit `*-linux-musl` targets and so the
    struct will no longer be able to be created using the literal
    initializer syntax.
    
    The only uses in this crate of `libc::timespec` in this way were zero
    initializing the struct. Thus, these can be replaced by a call to
    `std::mem::zeroed()` which is compatible with both current versions of
    the `libc` crate as well as the future version which will contain those
    private padding fields.
    wesleywiser committed Nov 23, 2022
    Configuration menu
    Copy the full SHA
    ea10383 View commit details
    Browse the repository at this point in the history