From ad9d3b9efcf0f4cd677bfe227ac1fedb2afd6487 Mon Sep 17 00:00:00 2001 From: Piotr Kubaj Date: Fri, 12 Jun 2026 19:15:23 +0000 Subject: [PATCH] link_speed.rs: fix build on 64-bit besides amd64 on FreeBSD The relevant code applies to any 64-bit architecture. Tested on powerpc64le. --- src/os/unix/link_speed.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/unix/link_speed.rs b/src/os/unix/link_speed.rs index 417a816..f91d90a 100644 --- a/src/os/unix/link_speed.rs +++ b/src/os/unix/link_speed.rs @@ -106,7 +106,7 @@ const SIOCGIFXMEDIA: u64 = 0xc02c6948; // #define SIOCGIFMEDIA _IOWR('i', 56, struct ifmediareq) // const SIOCGIFMEDIA: u64 = 0xc02c6938; -#[cfg(all(target_os = "freebsd", target_arch = "x86_64"))] +#[cfg(all(target_os = "freebsd", target_pointer_width = "64"))] // https://github.com/freebsd/freebsd-src/blob/master/sys/sys/sockio.h#L139 // #define SIOCGIFXMEDIA _IOWR('i', 139, struct ifmediareq) const SIOCGIFXMEDIA: u64 = 0xc030698b;