diff --git a/dlls/ntdll/unix/process.c b/dlls/ntdll/unix/process.c index 804985da4d7..758f47a1e9d 100644 --- a/dlls/ntdll/unix/process.c +++ b/dlls/ntdll/unix/process.c @@ -417,10 +417,8 @@ static NTSTATUS get_pe_file_info( UNICODE_STRING *path, HANDLE *handle, pe_image /* assume current arch */ #if defined(__i386__) || defined(__x86_64__) info->cpu = is_64bit ? CPU_x86_64 : CPU_x86; -#elif defined(__arm__) - info->cpu = CPU_ARM; -#elif defined(__aarch64__) - info->cpu = CPU_ARM64; +#else + info->cpu = client_cpu; #endif *handle = 0; return STATUS_SUCCESS; diff --git a/dlls/ntdll/unix/server.c b/dlls/ntdll/unix/server.c index d81fb3b89a2..299a311496b 100644 --- a/dlls/ntdll/unix/server.c +++ b/dlls/ntdll/unix/server.c @@ -100,18 +100,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(server); #define SOCKETNAME "socket" /* name of the socket file */ #define LOCKNAME "lock" /* name of the lock file */ -#ifdef __i386__ -static const enum cpu_type client_cpu = CPU_x86; -#elif defined(__x86_64__) -static const enum cpu_type client_cpu = CPU_x86_64; -#elif defined(__arm__) -static const enum cpu_type client_cpu = CPU_ARM; -#elif defined(__aarch64__) -static const enum cpu_type client_cpu = CPU_ARM64; -#else -#error Unsupported CPU -#endif - static const BOOL is_win64 = (sizeof(void *) > sizeof(int)); static const char *server_dir; diff --git a/dlls/ntdll/unix/unix_private.h b/dlls/ntdll/unix/unix_private.h index e353a17a7de..e0bc5a9603e 100644 --- a/dlls/ntdll/unix/unix_private.h +++ b/dlls/ntdll/unix/unix_private.h @@ -28,6 +28,16 @@ #define InterlockedCompareExchange64(dest,xchg,cmp) RtlInterlockedCompareExchange64(dest,xchg,cmp) #endif +#ifdef __i386__ +static const enum cpu_type client_cpu = CPU_x86; +#elif defined(__x86_64__) +static const enum cpu_type client_cpu = CPU_x86_64; +#elif defined(__arm__) +static const enum cpu_type client_cpu = CPU_ARM; +#elif defined(__aarch64__) +static const enum cpu_type client_cpu = CPU_ARM64; +#endif + struct debug_info { unsigned int str_pos; /* current position in strings buffer */