Browse Source

acpi: Fix compile error when allocator_api is not enabled

Alex Olson 2 years ago
parent
commit
d8140ca0e6
1 changed files with 5 additions and 1 deletions
  1. 5 1
      acpi/src/lib.rs

+ 5 - 1
acpi/src/lib.rs

@@ -73,7 +73,11 @@ pub use crate::platform::{interrupt::InterruptModel, PlatformInfo};
 #[cfg(feature = "allocator_api")]
 pub mod platform;
 
-pub use crate::{fadt::PowerProfile, hpet::HpetInfo, madt::MadtError, mcfg::PciConfigRegions};
+#[cfg(feature = "allocator_api")]
+pub use crate::mcfg::PciConfigRegions;
+
+pub use crate::{fadt::PowerProfile, hpet::HpetInfo, madt::MadtError};
+
 pub use rsdp::{
     handler::{AcpiHandler, PhysicalMapping},
     RsdpError,