Skip to content

Commit d8140ca

Browse files
A0lsonIsaacWoods
authored andcommitted
acpi: Fix compile error when allocator_api is not enabled
1 parent 20f562f commit d8140ca

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

acpi/src/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,11 @@ pub use crate::platform::{interrupt::InterruptModel, PlatformInfo};
7373
#[cfg(feature = "allocator_api")]
7474
pub mod platform;
7575

76-
pub use crate::{fadt::PowerProfile, hpet::HpetInfo, madt::MadtError, mcfg::PciConfigRegions};
76+
#[cfg(feature = "allocator_api")]
77+
pub use crate::mcfg::PciConfigRegions;
78+
79+
pub use crate::{fadt::PowerProfile, hpet::HpetInfo, madt::MadtError};
80+
7781
pub use rsdp::{
7882
handler::{AcpiHandler, PhysicalMapping},
7983
RsdpError,

0 commit comments

Comments
 (0)