about summary refs log tree commit diff
diff options
context:
space:
mode:
authorklutzy <klutzytheklutzy@gmail.com>2013-12-21 15:42:01 +0900
committerklutzy <klutzytheklutzy@gmail.com>2013-12-21 15:44:18 +0900
commitdfe58a9851011dd2d54b7db96b4eec3f30a3d250 (patch)
tree8e0161d2367215669e1666e1237ce85b81d249d2
parent20f13b228f5e5cc10e19c045a0dd52ec29b6cc45 (diff)
downloadrust-dfe58a9851011dd2d54b7db96b4eec3f30a3d250.tar.gz
rust-dfe58a9851011dd2d54b7db96b4eec3f30a3d250.zip
rustuv: Stop link to pthread on Windows
-rw-r--r--src/librustuv/uvll.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/librustuv/uvll.rs b/src/librustuv/uvll.rs
index 0e5b50fd310..dea90a40fa9 100644
--- a/src/librustuv/uvll.rs
+++ b/src/librustuv/uvll.rs
@@ -728,7 +728,9 @@ extern {
 // libuv requires other native libraries on various platforms. These are all
 // listed here (for each platform)
 
-#[cfg(not(target_os = "android"))] // apparently pthreads isn't on android?
+// libuv doesn't use pthread on windows
+// android libc (bionic) provides pthread, so no additional link is required
+#[cfg(not(windows), not(target_os = "android"))]
 #[link(name = "pthread")]
 extern {}