Skip to content

tv_nsec field of struct timespec removed for x86_64-unknown-linux-gnux32 platforms? #4495

Closed
@WorksButNotTested

Description

@WorksButNotTested

It seems that this commit simply removes the tv_nsec field of the structure? Is that the intention?

I am seeing it manifest as a compilation error of the parking_lot crate:

error[E0609]: no field `tv_nsec` on type `timespec`
  --> /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/parking_lot_core-0.9.11/src/thread_parker/linux.rs:86:16
   |
86 |             ts.tv_nsec = diff.subsec_nanos() as tv_nsec_t;
   |                ^^^^^^^ unknown field
   |
help: a field with a similar name exists
   |
86 -             ts.tv_nsec = diff.subsec_nanos() as tv_nsec_t;
86 +             ts.tv_sec = diff.subsec_nanos() as tv_nsec_t;
   |

Many thanks for your advice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions