Skip to content

Commit 009b1e8

Browse files
committed
FreeBSD: fix doc build
+ cargo xdoc --target i686-unknown-freebsd --no-default-features --features extra_traits error[E0412]: cannot find type `ucontext_t` in this scope --> src/unix/bsd/freebsdlike/freebsd/mod.rs:166:16 | 166 | pub struct ucontext_t { | ^^^^^^^^^^ not found in this scope
1 parent 08041c9 commit 009b1e8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • src/unix/bsd/freebsdlike/freebsd

src/unix/bsd/freebsdlike/freebsd/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,11 @@ s_no_extra_traits! {
160160
__unused1: ::c_int,
161161
__unused2: [::c_long; 7]
162162
}
163+
}
163164

165+
#[cfg(any(target_arch = "x86_64", target_arch = "aarch64"))]
166+
s_no_extra_traits! {
164167
#[cfg_attr(feature = "extra_traits", derive(Debug))]
165-
#[cfg(any(target_arch = "x86_64", target_arch = "aarch64"))]
166168
pub struct ucontext_t {
167169
pub uc_sigmask: ::sigset_t,
168170
pub uc_mcontext: ::mcontext_t,

0 commit comments

Comments
 (0)