mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-27 19:09:47 +03:00
std.os.linux: add explicit backing type to packed structs in extern types
This commit is contained in:
committed by
Andrew Kelley
parent
0978566db8
commit
627f03af9d
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user