From 364c767b47db561c5951ca81efe223849ceeca48 Mon Sep 17 00:00:00 2001 From: Ryan Seipp <12203894+ryanseipp@users.noreply.github.com> Date: Wed, 8 May 2024 13:26:00 -0400 Subject: [PATCH] Add definition of `c_char` for SPARC (#117) SPARC 32 bit is a tier 3 platform in Rust, though rustix checks against it. A proposed update to 0.6.4 for this library degraded those checks as SPARC 32 bit lacks a definition for `c_char`. The best evidence I could find as to the signedness of SPARC 32 bit is the blog post linked below, though I have not replicated their findings. https://github.com/bytecodealliance/rustix/actions/runs/8955815255/job/24596945878?pr=1056 https://trofi.github.io/posts/203-signed-char-or-unsigned-char.html --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index fb8a538d..7323c752 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -22,6 +22,7 @@ pub mod ctypes { #[cfg(any( target_arch = "mips", target_arch = "mips64", + target_arch = "sparc", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64",