aboutsummaryrefslogtreecommitdiffstats
path: root/main/xorg-server/fix-musl-arm.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-10-15 08:14:42 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-10-15 08:14:42 +0000
commit73929b8e73992a27d123ece9cc94e6a2b3265457 (patch)
tree2ed1e77bc36683dd296b94c8921e717b2b64d741 /main/xorg-server/fix-musl-arm.patch
parent2e45133d0c426bb80b55ad54bb934d2825b75b69 (diff)
downloadaports-73929b8e73992a27d123ece9cc94e6a2b3265457.tar.bz2
aports-73929b8e73992a27d123ece9cc94e6a2b3265457.tar.xz
main/xorg-server: fix musl/arm build
Diffstat (limited to 'main/xorg-server/fix-musl-arm.patch')
-rw-r--r--main/xorg-server/fix-musl-arm.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/main/xorg-server/fix-musl-arm.patch b/main/xorg-server/fix-musl-arm.patch
new file mode 100644
index 0000000000..ab9075d050
--- /dev/null
+++ b/main/xorg-server/fix-musl-arm.patch
@@ -0,0 +1,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 */