aboutsummaryrefslogtreecommitdiffstats
path: root/main/xorg-server/fix-musl-arm.patch
blob: ab9075d0507608e1c6a4d8bf42763195cfee97c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- xorg-server-1.14.3/hw/xfree86/common/compiler.h.orig
+++ xorg-server-1.14.3/hw/xfree86/common/compiler.h
@@ -720,7 +720,7 @@
                          :"r"(val), "r"(addr), "i"(ASI_PL));
 }
 
-#elif defined(__mips__) || (defined(__arm32__) && !defined(__linux__))
+#elif defined(__mips__) || (defined(__arm32__) && !defined(__GLIBC__))
 #ifdef __arm32__
 #define PORT_SIZE long
 #else
@@ -995,7 +995,7 @@
     return xf86ReadMmio32Le((void *) ioBase, port);
 }
 
-#elif defined(__arm__) && defined(__linux__)
+#elif defined(__arm__) && defined(__GLIBC__)
 
 /* for Linux on ARM, we use the LIBC inx/outx routines */
 /* note that the appropriate setup via "ioperm" needs to be done */