about summary refs log tree commit diff
path: root/library/std/src/sys/pal/unix/mod.rs
diff options
context:
space:
mode:
authorB I Mohammed Abbas <bimohammdabbas@gmail.com>2024-07-23 10:55:54 +0530
committerB I Mohammed Abbas <bimohammdabbas@gmail.com>2024-07-23 10:55:54 +0530
commit5c9f3762d0e90ac97485f3b3eb99bcee647322c5 (patch)
treeeecde142b08fdfb809cf617769a9547d008615e7 /library/std/src/sys/pal/unix/mod.rs
parenta598ca0f86926c91f87992796f88d5dd80a5d244 (diff)
downloadrust-5c9f3762d0e90ac97485f3b3eb99bcee647322c5.tar.gz
rust-5c9f3762d0e90ac97485f3b3eb99bcee647322c5.zip
Cfg disable on_broken_pipe_flag_used() for vxworks
Diffstat (limited to 'library/std/src/sys/pal/unix/mod.rs')
-rw-r--r--library/std/src/sys/pal/unix/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/library/std/src/sys/pal/unix/mod.rs b/library/std/src/sys/pal/unix/mod.rs
index d016e5e32d4..17960e4fe12 100644
--- a/library/std/src/sys/pal/unix/mod.rs
+++ b/library/std/src/sys/pal/unix/mod.rs
@@ -210,6 +210,7 @@ pub unsafe fn init(argc: isize, argv: *const *const u8, sigpipe: u8) {
     target_os = "emscripten",
     target_os = "fuchsia",
     target_os = "horizon",
+    target_os = "vxworks",
 )))]
 static ON_BROKEN_PIPE_FLAG_USED: crate::sync::atomic::AtomicBool =
     crate::sync::atomic::AtomicBool::new(false);
@@ -219,6 +220,7 @@ static ON_BROKEN_PIPE_FLAG_USED: crate::sync::atomic::AtomicBool =
     target_os = "emscripten",
     target_os = "fuchsia",
     target_os = "horizon",
+    target_os = "vxworks",
 )))]
 pub(crate) fn on_broken_pipe_flag_used() -> bool {
     ON_BROKEN_PIPE_FLAG_USED.load(crate::sync::atomic::Ordering::Relaxed)