Commit 1af6522
committed
WoA: skip <sys/mman.h> on Windows ARM64 in ARM JIT support (refs #1991)
compemu_support_arm.cpp unconditionally includes <sys/mman.h> for
aarch64 before sysconfig.h is processed, so even with USE_JIT=OFF
(AMIBERRY_NO_JIT defined) the include is still attempted. Windows
has no POSIX mman header, so the build fails with 'sys/mman.h' not
found.
Narrow the guard to '!defined(_WIN32)'. On WoA the rest of the file
is already elided by '#if defined(JIT)' at line 49, so this leaves
an empty translation unit — which is what we want for Phase 1.1 parent 590a3ff commit 1af6522
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
0 commit comments