We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b3a781 commit 095829aCopy full SHA for 095829a
library/std/src/sys/unix/os.rs
@@ -70,7 +70,7 @@ pub fn errno() -> i32 {
70
}
71
72
/// Sets the platform-specific value of errno
73
-#[cfg(all(not(target_os = "linux"), not(target_os = "dragonfly")))] // needed for readdir and syscall!
+#[cfg(not(target_os = "dragonfly"))] // needed for readdir and syscall!
74
#[allow(dead_code)] // but not all target cfgs actually end up using it
75
pub fn set_errno(e: i32) {
76
unsafe { *errno_location() = e as c_int }
0 commit comments