From: gmesmer 3676-gmesmer@users.noreply.gitlab.winehq.org
--- dlls/ntdll/unix/virtual.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/dlls/ntdll/unix/virtual.c b/dlls/ntdll/unix/virtual.c index 0fedfe0fb1d..ca241bbffd7 100644 --- a/dlls/ntdll/unix/virtual.c +++ b/dlls/ntdll/unix/virtual.c @@ -2436,7 +2436,7 @@ static NTSTATUS map_pe_header( void *ptr, size_t size, int fd, BOOL *removable ) return STATUS_SUCCESS; /* page protections will be updated later */ }
-#ifdef __aarch64__ +#ifdef _WIN64
/*********************************************************************** * get_host_addr_space_limit @@ -2464,6 +2464,9 @@ static void *get_host_addr_space_limit(void) return (void *)((addr << 1) - (granularity_mask + 1)); }
+#endif /* _WIN64 */ + +#ifdef __aarch64__
/*********************************************************************** * alloc_arm64ec_map @@ -3296,7 +3299,7 @@ void virtual_init(void) pthread_mutex_init( &virtual_mutex, &attr ); pthread_mutexattr_destroy( &attr );
-#ifdef __aarch64__ +#ifdef _WIN64 host_addr_space_limit = get_host_addr_space_limit(); TRACE( "host addr space limit: %p\n", host_addr_space_limit ); #else