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:
8 files changed
+1436
-2
No files matched your search
@@ -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" }
|
||||
Reference in new issue
Block a user