Skip to content

Commit

Permalink
Rollup merge of rust-lang#35433 - mneumann:dragonfly-fix-libstd-errno…
Browse files Browse the repository at this point in the history
…-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.
  • Loading branch information
Jonathan Turner authored Aug 7, 2016
2 parents 26f137b + e8da915 commit 71aa493
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libstd/sys/unix/os.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ static ENV_LOCK: Mutex = Mutex::new();


extern {
#[cfg(not(target_os = "dragonfly"))]
#[cfg_attr(any(target_os = "linux", target_os = "emscripten"),
link_name = "__errno_location")]
#[cfg_attr(any(target_os = "bitrig",
Expand Down

0 comments on commit 71aa493

Please sign in to comment.