about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/liblibc/lib.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/liblibc/lib.rs b/src/liblibc/lib.rs
index 55934da00a3..42e9bd9c9a0 100644
--- a/src/liblibc/lib.rs
+++ b/src/liblibc/lib.rs
@@ -150,6 +150,12 @@ extern {}
 #[link(name = "c", kind = "static")]
 extern {}
 
+#[cfg(all(windows, target_env = "msvc"))]
+#[link(name = "kernel32")]
+#[link(name = "shell32")]
+#[link(name = "msvcrt")]
+extern {}
+
 // libnacl provides functions that require a trip through the IRT to work.
 // ie: _exit, mmap, nanosleep, etc. Anything that would otherwise require a trip
 // to the kernel.