From dbf19604b7e049cb7467e240c668acb471cc03be Mon Sep 17 00:00:00 2001 From: Sergii Bogomolov Date: Fri, 31 Jul 2026 21:59:39 +0200 Subject: [PATCH] apple: change `BPF_ALIGNMENT` to `size_t` --- src/new/apple/xnu/net/bpf.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/new/apple/xnu/net/bpf.rs b/src/new/apple/xnu/net/bpf.rs index dc0aae84de28f..d160d9db147ba 100644 --- a/src/new/apple/xnu/net/bpf.rs +++ b/src/new/apple/xnu/net/bpf.rs @@ -47,7 +47,7 @@ pub const DLT_ATM_RFC1483: c_uint = 11; // LLC/SNAP encapsulated atm pub const DLT_RAW: c_uint = 12; // raw IP pub const DLT_LOOP: c_uint = 108; -pub const BPF_ALIGNMENT: c_int = size_of::() as c_int; +pub const BPF_ALIGNMENT: size_t = size_of::(); pub const BIOCGRSIG: c_ulong = _IOR::('B' as c_ulong, 114); pub const BIOCSRSIG: c_ulong = _IOW::('B' as c_ulong, 115);