Skip to content

Commit

Permalink
revert unix file changes
Browse files Browse the repository at this point in the history
  • Loading branch information
biabbas committed Oct 14, 2024
1 parent b76e900 commit 90e48e3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
}
Expand All @@ -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.")
}
Expand Down

0 comments on commit 90e48e3

Please sign in to comment.