diff --git a/src/libcore/libc.rs b/src/libcore/libc.rs index 80e3a22dcba..ae29bbe3085 100644 --- a/src/libcore/libc.rs +++ b/src/libcore/libc.rs @@ -1309,6 +1309,8 @@ fn setenv(name: *c_char, val: *c_char, overwrite: c_int) -> c_int; fn unsetenv(name: *c_char) -> c_int; fn putenv(string: *c_char) -> c_int; + + fn symlink(path1: *c_char, path2: *c_char) -> c_int; } #[nolink] @@ -1365,7 +1367,6 @@ fn sysctlnametomib(name: *c_char, mibp: *mut c_int, pub mod bsd44 { } - #[cfg(target_os = "macos")] #[nolink] #[abi = "cdecl"]