diff --git a/src/unix/newlib/mod.rs b/src/unix/newlib/mod.rs index 3602c957d70dd..2d0b0e0a544ca 100644 --- a/src/unix/newlib/mod.rs +++ b/src/unix/newlib/mod.rs @@ -767,6 +767,9 @@ cfg_if! { } else if #[cfg(target_os = "vita")] { mod vita; pub use self::vita::*; + } else if #[cfg(target_os = "rtems")] { + mod rtems; + pub use self::rtems::*; } else if #[cfg(target_arch = "arm")] { mod arm; pub use self::arm::*; @@ -783,13 +786,6 @@ cfg_if! { } } -cfg_if! { - if #[cfg(target_os = "rtems")] { - mod rtems; - pub use self::rtems::*; - } -} - #[macro_use] mod align; expand_align!();