blob: 4be441fb715e5dd751ba21c183625753070061b0 [file] [log] [blame]
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05001inb/outb family for arm is only implemented on glibc
2so assumption across linux is wrong
3
4Signed-off-by: Khem Raj <raj.khem@gmail.com>
5Upstream-Status: Pending
6Index: xorg-server-1.18.0/hw/xfree86/common/compiler.h
7===================================================================
8--- xorg-server-1.18.0.orig/hw/xfree86/common/compiler.h
9+++ xorg-server-1.18.0/hw/xfree86/common/compiler.h
10@@ -758,7 +758,7 @@ inl(unsigned short port)
11 return xf86ReadMmio32Le((void *) ioBase, port);
12 }
13
14-#elif defined(__arm__) && defined(__linux__)
15+#elif defined(__arm__) && defined(__GLIBC__)
16
17 /* for Linux on ARM, we use the LIBC inx/outx routines */
18 /* note that the appropriate setup via "ioperm" needs to be done */