Repository: libbpf/libbpf-rs (language: rust)

Issue:
Can't build on 32bit architectures
Because of two hard coded `u64` in [`libbpf-rs/src/tc.rs`](https://github.com/libbpf/libbpf-rs/blob/de704c9e560d7b5679f9525ebf6d73ff8b05717a/libbpf-rs/src/tc.rs#L50) this library cannot be built for 32bit targets (see [here](https://gitlab.alpinelinux.org/crapStone/aports/-/jobs/858146#L538)).

Is it ok to include `libc` in the dependencies and convert the `usize` to a `libc::c_ulong`?


Discussion / hints:

Fix patch:
diff --git a/libbpf-rs/src/tc.rs b/libbpf-rs/src/tc.rs
index 2826abb8..f0f44914 100644
--- a/libbpf-rs/src/tc.rs
+++ b/libbpf-rs/src/tc.rs
@@ -47,8 +47,8 @@ impl TcHook {
             opts: libbpf_sys::bpf_tc_opts::default(),
         };
 
-        tc_hook.hook.sz = std::mem::size_of::<libbpf_sys::bpf_tc_hook>() as u64;
-        tc_hook.opts.sz = std::mem::size_of::<libbpf_sys::bpf_tc_opts>() as u64;
+        tc_hook.hook.sz = std::mem::size_of::<libbpf_sys::bpf_tc_hook>() as libbpf_sys::size_t;
+        tc_hook.opts.sz = std::mem::size_of::<libbpf_sys::bpf_tc_opts>() as libbpf_sys::size_t;
         tc_hook.opts.prog_fd = fd;
 
         tc_hook


Test patch: