From 355d503acee3489b4e1e67f549142b71f7719c51 Mon Sep 17 00:00:00 2001 From: Jethro Beekman Date: Fri, 25 Feb 2022 12:11:58 +0100 Subject: [PATCH] Fix SGX docs build --- library/std/src/os/fd/owned.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/std/src/os/fd/owned.rs b/library/std/src/os/fd/owned.rs index 71c660e718675..d72f9a2ff9c8f 100644 --- a/library/std/src/os/fd/owned.rs +++ b/library/std/src/os/fd/owned.rs @@ -8,7 +8,7 @@ use crate::fmt; use crate::fs; use crate::marker::PhantomData; use crate::mem::forget; -#[cfg(not(target_os = "wasi"))] +#[cfg(not(any(target_os = "wasi", target_env = "sgx")))] use crate::sys::cvt; use crate::sys_common::{AsInner, FromInner, IntoInner};