Content-Length: 280158 | pFad | https://github.com/nix-rust/nix/issues/1968

D2 Redeclaration of fs_type_t on musl + s390x · Issue #1968 · nix-rust/nix · GitHub
Skip to content

Redeclaration of fs_type_t on musl + s390x #1968

@ptrcnull

Description

@ptrcnull

On a musl-based system running on s390x both of these lines are applicable:

#[cfg(all(target_os = "linux", target_arch = "s390x"))]
type fs_type_t = libc::c_uint;
#[cfg(all(target_os = "linux", target_env = "musl"))]
type fs_type_t = libc::c_ulong;

As such, trying to compile anything returns an error:

error[E0428]: the name `fs_type_t` is defined multiple times
  --> /home/buildozer/.cargo/registry/src/github.com-eae4ba8cbf2ce1c7/nix-0.26.1/src/sys/statfs.rs:68:1
   |
66 | type fs_type_t = libc::c_uint;
   | ------------------------------ previous definition of the type `fs_type_t` here
67 | #[cfg(all(target_os = "linux", target_env = "musl"))]
68 | type fs_type_t = libc::c_ulong;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `fs_type_t` redefined here
   |
   = note: `fs_type_t` must be defined only once in the type namespace of this module

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/nix-rust/nix/issues/1968

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy