Skip to content

Commit 1af6522

Browse files
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

File tree

‎src/jit/arm/compemu_support_arm.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#include "sysdeps.h"
3232

3333
#include <math.h>
34-
#if defined(CPU_AARCH64)
34+
#if defined(CPU_AARCH64) && !defined(_WIN32)
3535
#include <sys/mman.h>
3636
#endif
3737

0 commit comments

Comments
 (0)