Skip to content

Commit bee0155

Browse files
author
B I Mohammed Abbas
committed
Cfg disable on_broken_pipe_flag_used() for vxworks
1 parent 227b5af commit bee0155

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

std/src/sys/pal/unix/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ pub unsafe fn init(argc: isize, argv: *const *const u8, sigpipe: u8) {
210210
target_os = "emscripten",
211211
target_os = "fuchsia",
212212
target_os = "horizon",
213+
target_os = "vxworks",
213214
)))]
214215
static ON_BROKEN_PIPE_FLAG_USED: crate::sync::atomic::AtomicBool =
215216
crate::sync::atomic::AtomicBool::new(false);
@@ -219,6 +220,7 @@ static ON_BROKEN_PIPE_FLAG_USED: crate::sync::atomic::AtomicBool =
219220
target_os = "emscripten",
220221
target_os = "fuchsia",
221222
target_os = "horizon",
223+
target_os = "vxworks",
222224
)))]
223225
pub(crate) fn on_broken_pipe_flag_used() -> bool {
224226
ON_BROKEN_PIPE_FLAG_USED.load(crate::sync::atomic::Ordering::Relaxed)

0 commit comments

Comments
 (0)