xref: /aosp_15_r20/external/crosvm/third_party/vmm_vhost/src/sys.rs (revision bb4ee6a4ae7042d18b07a98463b9c8b875e44b39)
1 // Copyright 2022 The Chromium OS Authors. All rights reserved.
2 // SPDX-License-Identifier: Apache-2.0
3 
4 //! A wrapper module for platform dependent code.
5 
6 cfg_if::cfg_if! {
7     if #[cfg(unix)] {
8         pub mod unix;
9         use unix as platform;
10     } else if #[cfg(windows)] {
11         pub mod windows;
12         use windows as platform;
13     } else {
14         compile_error!("Unsupported platform");
15     }
16 }
17 
18 pub(crate) use platform::PlatformConnection;
19