Skip to content

Commit 3668cb6

Browse files
committed
fix: correct cfg gate for HRESULT import
Signed-off-by: danbugs <danilochiarlone@gmail.com>
1 parent c5feeda commit 3668cb6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/hyperlight_host/src/hypervisor/virtual_machine

src/hyperlight_host/src/hypervisor/virtual_machine/whp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ use windows::Win32::System::LibraryLoader::*;
3030
use windows::Win32::System::Memory::{MEMORY_MAPPED_VIEW_ADDRESS, UnmapViewOfFile};
3131
#[cfg(not(feature = "whp-no-surrogate"))]
3232
use windows::core::s;
33-
#[cfg(not(feature = "whp-no-surrogate"))]
33+
#[cfg(any(feature = "hw-interrupts", not(feature = "whp-no-surrogate")))]
3434
use windows_result::HRESULT;
3535

3636
#[cfg(gdb)]

0 commit comments

Comments
 (0)