mirror of
https://github.com/rust-lang/rust
synced 2024-10-19 23:13:41 +00:00
Rollup merge of #91474 - rtzoeller:dfly_set_errno, r=cuviper
suppress warning about set_errno being unused on DragonFly Other targets allow this function to be unused, DragonFly just misses out due to providing a specialization. This fixes a build error for DragonFly.
This commit is contained in:
commit
aa6f2d9a79
|
@ -97,6 +97,7 @@ pub fn errno() -> i32 {
|
|||
}
|
||||
|
||||
#[cfg(target_os = "dragonfly")]
|
||||
#[allow(dead_code)]
|
||||
pub fn set_errno(e: i32) {
|
||||
extern "C" {
|
||||
#[thread_local]
|
||||
|
|
Loading…
Reference in a new issue