From 48fdec7bc54c3fcaf429ed0674f5eb1e134b9aa4 Mon Sep 17 00:00:00 2001 From: Michal Rostecki Date: Mon, 16 Jan 2023 14:43:48 +0800 Subject: [PATCH] Implement `Pod` for `bool` Without this change, it's impossible to use `bool` as a map element type or overriding `bool` global variables. Signed-off-by: Michal Rostecki --- aya/src/bpf.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aya/src/bpf.rs b/aya/src/bpf.rs index 3f765b9a..779c8dad 100644 --- a/aya/src/bpf.rs +++ b/aya/src/bpf.rs @@ -57,7 +57,7 @@ macro_rules! unsafe_impl_pod { } } -unsafe_impl_pod!(i8, u8, i16, u16, i32, u32, i64, u64, u128, i128); +unsafe_impl_pod!(i8, u8, i16, u16, i32, u32, i64, u64, u128, i128, bool); // It only makes sense that an array of POD types is itself POD unsafe impl Pod for [T; N] {}