fixes for win32
This commit is contained in:
parent
1e7a5ebe81
commit
acdc70b0a6
@ -63,8 +63,8 @@ nix = "0.20.0"
|
||||
uds = "0.2.3"
|
||||
|
||||
[target.'cfg(windows)'.dependencies]
|
||||
windows = "0.3.1"
|
||||
windows = "0.4.0"
|
||||
uuid = { version = "0.8", features = ["v4"] }
|
||||
|
||||
[target.'cfg(windows)'.build-dependencies]
|
||||
windows = "0.3.1"
|
||||
windows = "0.4.0"
|
||||
|
@ -1,7 +1,7 @@
|
||||
fn main() {
|
||||
#[cfg(target_os = "windows")]
|
||||
windows::build!(
|
||||
windows::win32::system_services::HANDLE,
|
||||
windows::win32::system_services::{HANDLE, BOOL, PAGE_TYPE},
|
||||
windows::win32::windows_programming::CloseHandle,
|
||||
// API needed for the shared memory
|
||||
windows::win32::system_services::{CreateFileMappingA, OpenFileMappingA, MapViewOfFile, UnmapViewOfFile},
|
||||
|
@ -460,7 +460,6 @@ pub mod shmem {
|
||||
|
||||
const INVALID_HANDLE_VALUE: isize = -1;
|
||||
const FILE_MAP_ALL_ACCESS: u32 = 0xf001f;
|
||||
//const PAGE_READWRITE: u32 = 0x04;
|
||||
|
||||
/// The default Sharedmap impl for windows using shmctl & shmget
|
||||
#[derive(Clone, Debug)]
|
||||
|
Loading…
x
Reference in New Issue
Block a user