summaryrefslogtreecommitdiffhomepage
path: root/patches/xwin/no_wow64.patch
blob: 462e105fd0bc4b50cc20082ebd29fb002b462470 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- xorg-server-1.20.1.orig/hw/xwin/winos.c	2018-08-07 18:31:04.000000000 +0200
+++ xorg-server-1.20.1/hw/xwin/winos.c	2018-08-20 20:47:53.954276769 +0200
@@ -36,6 +36,7 @@
 static const char*
 IsWow64(void)
 {
+#ifndef __midipix__
 #ifdef __x86_64__
     return " (64-bit)";
 #else
@@ -51,6 +52,13 @@
     /* OS doesn't support IsWow64Process() */
     return "";
 #endif
+#else
+#ifdef __NT64
+    return " (64-bit)";
+#else
+    return " (32-bit)";
+#endif
+#endif
 }
 
 /*