nix icon indicating copy to clipboard operation
nix copied to clipboard

Fix the build issue of undefined import self::consts on the loongarch64

Open DWwanghao opened this issue 11 months ago • 1 comments
trafficstars

What does this PR do

Fix failed to build for target loongarch64(similar to MIPS) with this error:

error[E0432]: unresolved import `self::consts`
  --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nix-0.26.4/src/sys/ioctl/linux.rs:60:15
   |
60 | pub use self::consts::*;
   |               ^^^^^^ could not find `consts` in `self`

Checklist:

  • [x] I have read CONTRIBUTING.md
  • [ ] I have written necessary tests and rustdoc comments
  • [x] A change log has been added if this PR modifies nix's API

DWwanghao avatar Dec 20 '24 07:12 DWwanghao