std.os.linux: add explicit backing type to packed structs in extern types

This commit is contained in:
Pablo Alessandro Santos Hugen
2026-03-11 13:05:06 -03:00
committed by Andrew Kelley
parent 0978566db8
commit 627f03af9d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -297,7 +297,7 @@ pub const lifreq = extern struct {
/// Maximum transmission unit
mtu: u32,
// Technically [2]i32
muxid: packed struct { ip: i32, arp: i32 },
muxid: packed struct(u64) { ip: i32, arp: i32 },
/// Neighbor reachability determination entries
nd_req: lif_nd_req,
/// Link info
+1 -1
View File
@@ -9515,7 +9515,7 @@ pub const perf_event_attr = extern struct {
sample_type: u64 = 0,
read_format: u64 = 0,
flags: packed struct {
flags: packed struct(u64) {
/// off by default
disabled: bool = false,
/// children inherit it