diff --git a/src/unix/bsd/freebsdlike/freebsd/x86_64/mod.rs b/src/unix/bsd/freebsdlike/freebsd/x86_64/mod.rs index 435faa1d26a8..e0dda21de0a9 100644 --- a/src/unix/bsd/freebsdlike/freebsd/x86_64/mod.rs +++ b/src/unix/bsd/freebsdlike/freebsd/x86_64/mod.rs @@ -243,7 +243,7 @@ cfg_if! { unsafe { self.a_val == other.a_val || self.a_ptr == other.a_ptr - || self.a_fcn == other.a_fcn + || core::ptr::fn_addr_eq(self.a_fcn, other.a_fcn) } } }