From 90e48e3054da6afd94ea71701e60f025065f61bb Mon Sep 17 00:00:00 2001 From: B I Mohammed Abbas Date: Mon, 14 Oct 2024 16:18:15 +0530 Subject: [PATCH] revert unix file changes --- src/unix.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/unix.rs b/src/unix.rs index e4615d5..f6aad7f 100644 --- a/src/unix.rs +++ b/src/unix.rs @@ -51,8 +51,6 @@ fn errno() -> libc::c_int { *libc::__errno_location() } else if #[cfg(any(target_os = "macos", target_os = "ios", target_os = "freebsd"))] { *libc::__error() - } else if #[cfg(target_os = "vxworks")] { - libc::errnoGet() } else { compile_error!("Your OS is probably not supported.") } @@ -69,8 +67,6 @@ fn set_errno(number: libc::c_int) { *libc::__errno_location() = number; } else if #[cfg(any(target_os = "macos", target_os = "ios", target_os = "freebsd"))] { *libc::__error() = number; - } else if #[cfg(target_os = "vxworks")] { - let _ = libc::errnoSet(number); } else { compile_error!("Your OS is probably not supported.") }