diff options
| author | B I Mohammed Abbas <bimohammdabbas@gmail.com> | 2024-07-23 10:55:54 +0530 |
|---|---|---|
| committer | B I Mohammed Abbas <bimohammdabbas@gmail.com> | 2024-07-23 10:55:54 +0530 |
| commit | 5c9f3762d0e90ac97485f3b3eb99bcee647322c5 (patch) | |
| tree | eecde142b08fdfb809cf617769a9547d008615e7 /library/std/src/sys/pal/unix/mod.rs | |
| parent | a598ca0f86926c91f87992796f88d5dd80a5d244 (diff) | |
| download | rust-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.rs | 2 |
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) |
