const data: []align(mem.page_size) u8 = try std.os.mmap(null, file_size, std.os.PROT.READ, std.os.MAP.PRIVATE, mapped_checkpoint.handle, 0);
from https://github.com/cgbur/llama2.zig/blob/0000b155e4192dc48dd7d54b9971acfe566711e4/src/main.zig#L848
Immediatly fails when compiling with:
zig build-exe src/main.zig -target x86_64-windows
0.12.0-dev.66+5e0107fbc/files/lib/std/os.zig:99:23: error: root struct of file 'c' has no member named 'MAP'
pub const MAP = system.MAP;
~~~~~~^~~~
referenced by:
main: src/main.zig:848:102
Any ideas here? I thought that the os module was platform independent. Do I need to just read the file in on windows instead of mmap?