about summary refs log tree commit diff
path: root/library/std/src/os
diff options
context:
space:
mode:
authorbdbai <bdbaiapp@163.com>2022-05-15 21:15:45 +0800
committerbdbai <bdbaiapp@163.com>2022-05-15 21:15:45 +0800
commit4f637ee30ba1ec9ab15c8b5d12e80e8ae810a811 (patch)
tree90cf41579ed2657fa5f3b65653d3c3262e6d408f /library/std/src/os
parente1ec3260d79497080ca86540562d410ba67d2a95 (diff)
downloadrust-4f637ee30ba1ec9ab15c8b5d12e80e8ae810a811.tar.gz
rust-4f637ee30ba1ec9ab15c8b5d12e80e8ae810a811.zip
fix use of SetHandleInformation on UWP
Diffstat (limited to 'library/std/src/os')
-rw-r--r--library/std/src/os/windows/io/handle.rs1
-rw-r--r--library/std/src/os/windows/io/socket.rs1
2 files changed, 2 insertions, 0 deletions
diff --git a/library/std/src/os/windows/io/handle.rs b/library/std/src/os/windows/io/handle.rs
index f27970eaaf1..0ecac6b4475 100644
--- a/library/std/src/os/windows/io/handle.rs
+++ b/library/std/src/os/windows/io/handle.rs
@@ -206,6 +206,7 @@ impl OwnedHandle {
     }
 
     /// Allow child processes to inherit the handle.
+    #[cfg(not(target_vendor = "uwp"))]
     pub(crate) fn set_inheritable(&self) -> io::Result<()> {
         cvt(unsafe {
             c::SetHandleInformation(
diff --git a/library/std/src/os/windows/io/socket.rs b/library/std/src/os/windows/io/socket.rs
index c14a1d6192f..7231fe7d1b6 100644
--- a/library/std/src/os/windows/io/socket.rs
+++ b/library/std/src/os/windows/io/socket.rs
@@ -10,6 +10,7 @@ use crate::mem;
 use crate::mem::forget;
 use crate::sys;
 use crate::sys::c;
+#[cfg(not(target_vendor = "uwp"))]
 use crate::sys::cvt;
 
 /// A borrowed socket.