]> git.proxmox.com Git - rustc.git/blobdiff - src/liblibc/src/lib.rs
Imported Upstream version 1.9.0+dfsg1
[rustc.git] / src / liblibc / src / lib.rs
index c9d7701aa652525e20e8c410bc4f629367d12706..2593e3ba6bc00e85cdeedbb1e16b39b8477dd8aa 100644 (file)
@@ -74,7 +74,7 @@
 ))]
 
 // Attributes needed when building as part of the standard library
-#![cfg_attr(stdbuild, feature(no_std, core, core_slice_ext, staged_api, custom_attribute))]
+#![cfg_attr(stdbuild, feature(no_std, core, core_slice_ext, staged_api, custom_attribute, cfg_target_vendor))]
 #![cfg_attr(stdbuild, no_std)]
 #![cfg_attr(stdbuild, staged_api)]
 #![cfg_attr(stdbuild, allow(warnings))]
@@ -258,8 +258,10 @@ cfg_if! {
     if #[cfg(windows)] {
         mod windows;
         pub use windows::*;
-    } else {
+    } else if #[cfg(unix)] {
         mod unix;
         pub use unix::*;
+    } else {
+        // Unknown target_family
     }
 }