Repository: paritytech/parity-db (language: rust)

Issue:
`madvise_random` function in v0.4.10 has different signatures for Unix and non-Unix systems
The `madvise_random` function for both Unix and non-Unix systems had the same signature in v0.4.9:

https://github.com/paritytech/parity-db/blob/v0.4.9/src/index.rs#L145-L157

Since the v0.4.10 function signatures are different:

https://github.com/paritytech/parity-db/blob/v0.4.10/src/file.rs#L47-L54

This yields build error when building for, e.g., Windows.

## Possible solution

Make non-Unix signature the same as the Unix one.

```rust
#[cfg(not(unix))]
pub fn madvise_random(_map: &mut memmap2::MmapMut) {}
```


Discussion / hints:

Fix patch:
diff --git a/src/file.rs b/src/file.rs
index 34c142fa..48a9728e 100644
--- a/src/file.rs
+++ b/src/file.rs
@@ -51,7 +51,7 @@ pub fn madvise_random(map: &mut memmap2::MmapMut) {
 }
 
 #[cfg(not(unix))]
-pub fn madvise_random(_id: TableId, _map: &mut memmap2::MmapMut) {}
+pub fn madvise_random(_map: &mut memmap2::MmapMut) {}
 
 const GROW_SIZE_BYTES: u64 = 256 * 1024;
 


Test patch: