Skip to content

Commit d9eac5d

Browse files
committed
Fix librustuv
1 parent d344477 commit d9eac5d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/librustuv/uvll.rs

+3-5
Original file line numberDiff line numberDiff line change
@@ -723,12 +723,11 @@ extern {
723723

724724
// libuv doesn't use pthread on windows
725725
// android libc (bionic) provides pthread, so no additional link is required
726-
#[cfg(not(windows), not(target_os = "android"))]
726+
#[cfg(not(any(windows, target_os = "android")))]
727727
#[link(name = "pthread")]
728728
extern {}
729729

730-
#[cfg(target_os = "linux")]
731-
#[cfg(target_os = "dragonfly")]
730+
#[cfg(any(target_os = "linux", target_os = "dragonfly"))]
732731
#[link(name = "rt")]
733732
extern {}
734733

@@ -738,7 +737,6 @@ extern {}
738737
#[link(name = "iphlpapi")]
739738
extern {}
740739

741-
#[cfg(target_os = "freebsd")]
742-
#[cfg(target_os = "dragonfly")]
740+
#[cfg(any(target_os = "freebsd", target_os = "dragonfly"))]
743741
#[link(name = "kvm")]
744742
extern {}

0 commit comments

Comments
 (0)