Cfg disable on_broken_pipe_flag_used() for vxworks · model-checking/verify-rust-std@bee0155

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)