uucore: simplify cfg checks in signals.rs (#10296)

Remove redundant unix conditions since macOS is already covered by the unix target family
This commit is contained in:
Sylvestre Ledru
2026-01-17 12:12:10 -08:00
committed by GitHub
parent f01d1e8422
commit c4985953f8
+2 -2
View File
@@ -457,13 +457,13 @@ pub unsafe extern "C" fn capture_sigpipe_state() {
#[cfg(unix)]
macro_rules! init_sigpipe_capture {
() => {
#[cfg(all(unix, not(target_os = "macos")))]
#[cfg(not(target_os = "macos"))]
#[used]
#[unsafe(link_section = ".init_array")]
static CAPTURE_SIGPIPE_STATE: unsafe extern "C" fn() =
$crate::signals::capture_sigpipe_state;
#[cfg(all(unix, target_os = "macos"))]
#[cfg(target_os = "macos")]
#[used]
#[unsafe(link_section = "__DATA,__mod_init_func")]
static CAPTURE_SIGPIPE_STATE: unsafe extern "C" fn() =