Skip to content

Commit

Permalink
Fix build on DragonFly (unused function errno_location)
Browse files Browse the repository at this point in the history
Function errno_location() is not used on DragonFly. As warnings are
errors, this breaks the build.
  • Loading branch information
mneumann committed Aug 6, 2016
1 parent 444ff9f commit e8da915
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libstd/sys/unix/os.rs
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 e8da915

Please sign in to comment.