Skip to content

Commit 095829a

Browse files
committed
Allow set_errno on Linux
1 parent 7b3a781 commit 095829a

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
@@ -70,7 +70,7 @@ pub fn errno() -> i32 {
7070
}
7171

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

0 commit comments

Comments
 (0)