Skip to content

Commit 71aa493

Browse files
author
Jonathan Turner
authored
Rollup merge of rust-lang#35433 - mneumann:dragonfly-fix-libstd-errno-location, r=alexcrichton
Fix build on DragonFly (unused function errno_location) Function errno_location() is not used on DragonFly. As warnings are errors, this breaks the build.
2 parents 26f137b + e8da915 commit 71aa493

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libstd/sys/unix/os.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ static ENV_LOCK: Mutex = Mutex::new();
3737

3838

3939
extern {
40+
#[cfg(not(target_os = "dragonfly"))]
4041
#[cfg_attr(any(target_os = "linux", target_os = "emscripten"),
4142
link_name = "__errno_location")]
4243
#[cfg_attr(any(target_os = "bitrig",

0 commit comments

Comments
 (0)