diff options
| author | Jonathan Turner <jonathandturner@users.noreply.github.com> | 2016-08-07 09:59:43 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-08-07 09:59:43 -0700 |
| commit | 56ffcbd3211cbffbfdcafe3204cff65571741677 (patch) | |
| tree | a39ba8ee1f366d3ae32789a630de1c5dfba2564f /src/libstd/sys | |
| parent | 9151431fd4161dafc5e9df1997e8d84601196f71 (diff) | |
| parent | e8da9159fb75b1bd37bc992d5c11635c83fba819 (diff) | |
| download | rust-56ffcbd3211cbffbfdcafe3204cff65571741677.tar.gz rust-56ffcbd3211cbffbfdcafe3204cff65571741677.zip | |
Rollup merge of #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.
Diffstat (limited to 'src/libstd/sys')
| -rw-r--r-- | src/libstd/sys/unix/os.rs | 1 |
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", |
