Skip to content

fix(netbsd): remove IFF_NOTRAILERS#2709

Closed
fujiapple852 wants to merge 1 commit intonix-rust:masterfrom
fujiapple852:fix-netbsd-iff_no_trailers
Closed

fix(netbsd): remove IFF_NOTRAILERS#2709
fujiapple852 wants to merge 1 commit intonix-rust:masterfrom
fujiapple852:fix-netbsd-iff_no_trailers

Conversation

@fujiapple852
Copy link
Copy Markdown

libc version 0.2.178 includes this change:

NetBSD: Remove IFF_NOTRAILERS (rust-lang/libc#4782)

This causes nix to fail to compile against NetBSD targets:

$ cargo check --target x86_64-unknown-netbsd
    Checking nix v0.30.1
error[E0425]: cannot find value `IFF_NOTRAILERS` in crate `libc`

Real world failure observed in Gitlab CI using cargo-cross: https://github.com/fujiapple852/trippy/actions/runs/20000766159/job/57355635047#step:7:402

This MR is similar to #893 which removed IFF_NOTRAILERS from OpenBSD.

aside: I didn't add this to the CHANGELOG.md as there was no unreleased section.

IFF_NOTRAILERS was removed from libc version 0.2.178

see rust-lang/libc#4782
@0-wiz-0
Copy link
Copy Markdown

0-wiz-0 commented Jan 9, 2026

Can this be merged, please?

@0323pin
Copy link
Copy Markdown

0323pin commented Jan 9, 2026

Yes, can we have this merged, please?
It's causing several build failures.

@Rhialto
Copy link
Copy Markdown

Rhialto commented Jan 20, 2026

Can this be merged, please? It breaks building jj for me, for example.

@SteveLauC
Copy link
Copy Markdown
Member

#2724 bumped the libc create to 0.2.180 and fixed this issue, I will cut a release soon

@SteveLauC
Copy link
Copy Markdown
Member

0.31.0 released

@SteveLauC SteveLauC closed this Jan 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants