fix(deps): patch netlink-socket2 to support musl targets

Vendor netlink-socket2 to resolve compilation failures caused by direct struct-literal initialization of libc types on musl.
This commit was merged in pull request #44.
This commit is contained in:
Nils Andreas Svee committed 2026-04-14 15:00:49 +07:00
1 parent 5daccecc1d
commit 7b0eb942ea
8 files changed
+1436 -2

No files matched your search

+7
View File
@@ -35,3 +35,10 @@ version = "0.4"
[features]
uci = ["dep:rust-uci"]
[patch.crates-io]
# netlink-socket2 0.3.0 uses struct-literal syntax for libc::msghdr/cmsghdr which
# fails on musl (private __pad1/__pad2 fields, u32 vs usize for cmsg_len).
# Remove this patch once a fixed version is published upstream.
# Upstream PR: https://github.com/one-d-wide/netlink-bindings/pull/12
netlink-socket2 = { path = "vendor/netlink-socket2" }