Skip to content

Commit e8da915

Browse files
committed
Fix build on DragonFly (unused function errno_location)
Function errno_location() is not used on DragonFly. As warnings are errors, this breaks the build.
1 parent 444ff9f commit e8da915

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libstd/sys/unix/os.rs

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ static ENV_LOCK: Mutex = Mutex::new();
3737

3838

3939
extern {
40+
#[cfg(not(target_os = "dragonfly"))]
4041
#[cfg_attr(any(target_os = "linux", target_os = "emscripten"),
4142
link_name = "__errno_location")]
4243
#[cfg_attr(any(target_os = "bitrig",

0 commit comments

Comments
 (0)