summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2018-07-10 07:14:36 -0700
committerAlex Crichton <alex@alexcrichton.com>2018-07-10 07:14:43 -0700
commit30bb481ba9db92429204944e6b8f2790a76234a1 (patch)
tree534db7eaabfd00a7768d3950932bfd9615c21833
parent37e3a22feb3d75695ebfd1dd63e0e27c46e62120 (diff)
downloadrust-libc-30bb481ba9db92429204944e6b8f2790a76234a1.tar.gz
Fix a #[cfg] attribute
It looks like this was a mistake of #930 but should be easy to fix!
-rw-r--r--src/unix/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unix/mod.rs b/src/unix/mod.rs
index 6360e1565f..7c5f4e6b4b 100644
--- a/src/unix/mod.rs
+++ b/src/unix/mod.rs
@@ -310,7 +310,7 @@ cfg_if! {
// Since we don't use -nodefaultlibs on Rumprun, libc is always pulled
// in automatically by the linker. We avoid passing it explicitly, as it
// causes some versions of binutils to crash with an assertion failure.
- #[cfg_attr(feature = "stdbuild", target_vendor = "rumprun")]
+ #[cfg_attr(feature = "stdbuild", cfg(target_vendor = "rumprun"))]
#[link(name = "m")]
extern {}
} else if #[cfg(any(target_os = "macos",