From e8da9159fb75b1bd37bc992d5c11635c83fba819 Mon Sep 17 00:00:00 2001 From: Michael Neumann Date: Sat, 6 Aug 2016 22:01:51 +0200 Subject: [PATCH] Fix build on DragonFly (unused function errno_location) Function errno_location() is not used on DragonFly. As warnings are errors, this breaks the build. --- src/libstd/sys/unix/os.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libstd/sys/unix/os.rs b/src/libstd/sys/unix/os.rs index 4c3558f91f5f2..33c526532c7a8 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",