summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYu Ding <dingelish@gmail.com>2019-03-08 10:42:17 -0800
committerYu Ding <dingelish@gmail.com>2019-03-08 10:42:17 -0800
commit21503efac3e9f168b5ba0b5281a6134d3137cda7 (patch)
tree38fe67afd42f687db1c815616aaa74483948a5a6
parent920ee0f162da962917949366a49ffe74f24ec575 (diff)
downloadrust-libc-21503efac3e9f168b5ba0b5281a6134d3137cda7.tar.gz
Add essential target_vendor check for sgx
Signed-off-by: Yu Ding <dingelish@gmail.com>
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 019f072e17..2c30576bad 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -109,7 +109,7 @@ cfg_if! {
} else if #[cfg(target_os = "hermit")] {
mod hermit;
pub use hermit::*;
- } else if #[cfg(target_env = "sgx")] {
+ } else if #[cfg(all(target_env = "sgx", target_vendor = "fortanix"))] {
mod sgx;
pub use sgx::*;
} else {