mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
rustuv: Stop link to pthread on Windows
This commit is contained in:
@@ -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 {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user