]> git.lizzy.rs Git - rust.git/commitdiff
rustuv: Stop link to pthread on Windows
authorklutzy <klutzytheklutzy@gmail.com>
Sat, 21 Dec 2013 06:42:01 +0000 (15:42 +0900)
committerklutzy <klutzytheklutzy@gmail.com>
Sat, 21 Dec 2013 06:44:18 +0000 (15:44 +0900)
src/librustuv/uvll.rs

index 0e5b50fd310d070721a22af81d6dcbc3cc8c1c81..dea90a40fa9fc37497b87a77419a19555746842e 100644 (file)
@@ -728,7 +728,9 @@ pub fn uv_signal_start(h: *uv_signal_t, cb: uv_signal_cb,
 // 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 {}