From 22721dd02631ef1be60382d9db45b02b9b791055 Mon Sep 17 00:00:00 2001 From: Benjamin Naecker Date: Thu, 26 Mar 2026 16:35:48 -0700 Subject: [PATCH] Fix compiler error on aarch64 no-linker systems - Use c_char instead of i8 for module name in DOF helper - Fixes #545 --- usdt-impl/src/no-linker.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usdt-impl/src/no-linker.rs b/usdt-impl/src/no-linker.rs index 13b21018..1d209b2a 100644 --- a/usdt-impl/src/no-linker.rs +++ b/usdt-impl/src/no-linker.rs @@ -163,7 +163,7 @@ pub fn register_probes() -> Result<(), crate::Error> { .unwrap_or_else(|| String::from("unknown-module")); let mut modname = [0; 64]; for (i, byte) in module_name.bytes().take(modname.len() - 1).enumerate() { - modname[i] = byte as i8; + modname[i] = byte as std::os::raw::c_char; } ioctl_section(&serialize_section(§ion), modname) }