about summary refs log tree commit diff
path: root/src/libstd/sys
diff options
context:
space:
mode:
authorMichael Neumann <mneumann@ntecs.de>2016-08-06 22:01:51 +0200
committerMichael Neumann <mneumann@ntecs.de>2016-08-06 22:01:51 +0200
commite8da9159fb75b1bd37bc992d5c11635c83fba819 (patch)
tree0923c424d54ae5ec090dd40d7cb308fd6208172c /src/libstd/sys
parent444ff9fbfb1f2a8e6645f67684f8a9ad99b343d3 (diff)
downloadrust-e8da9159fb75b1bd37bc992d5c11635c83fba819.tar.gz
rust-e8da9159fb75b1bd37bc992d5c11635c83fba819.zip
Fix build on DragonFly (unused function errno_location)
Function errno_location() is not used on DragonFly. As warnings are
errors, this breaks the build.
Diffstat (limited to 'src/libstd/sys')
-rw-r--r--src/libstd/sys/unix/os.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/sys/unix/os.rs b/src/libstd/sys/unix/os.rs
index 4c3558f91f5..33c526532c7 100644
--- a/src/libstd/sys/unix/os.rs
+++ b/src/libstd/sys/unix/os.rs
@@ -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",