Skip to content

Commit e84a8ca

Browse files
committed
Allow set_errno on Linux
1 parent d4d129d commit e84a8ca

File tree

1 file changed

+1
-1
lines changed
  • library/std/src/sys/unix

1 file changed

+1
-1
lines changed

library/std/src/sys/unix/os.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ pub fn errno() -> i32 {
7373
}
7474

7575
/// Sets the platform-specific value of errno
76-
#[cfg(all(not(target_os = "linux"), not(target_os = "dragonfly"), not(target_os = "vxworks")))] // needed for readdir and syscall!
76+
#[cfg(all(not(target_os = "linux"), not(target_os = "dragonfly")))] // needed for readdir and syscall!
7777
#[allow(dead_code)] // but not all target cfgs actually end up using it
7878
pub fn set_errno(e: i32) {
7979
unsafe { *errno_location() = e as c_int }

0 commit comments

Comments
 (0)