aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-graphics/xorg-xserver/xserver-xorg-1.11.4/mips64-compiler.patch
blob: e6bc95b449530354e9571bbf126f6764e5f2a301 (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
25
26
27
28
29
on mips64/n64 pointers are 64bit therefore the pointer conversions to int dont work well
so we end up with incompatible conversion errors

This patch choses the right values for mips64

Signed-off-by: Khem Raj <raj.khem@gmail.com>

Upstream-Status: Pending
Index: xorg-server-1.11.2/hw/xfree86/common/compiler.h
===================================================================
--- xorg-server-1.11.2.orig/hw/xfree86/common/compiler.h	2012-05-10 12:19:59.485599046 -0700
+++ xorg-server-1.11.2/hw/xfree86/common/compiler.h	2012-05-10 12:20:53.109602488 -0700
@@ -104,6 +104,7 @@
 
 #  if !defined(__arm__)
 #   if !defined(__sparc__) && !defined(__sparc) && !defined(__arm32__) && !defined(__nds32__) \
+      && !defined(__mips64) \
       && !(defined(__alpha__) && defined(linux)) \
       && !(defined(__ia64__) && defined(linux)) \
 
@@ -708,7 +709,7 @@
 }
 
 #   elif defined(__mips__) || (defined(__arm32__) && !defined(__linux__))
-#    ifdef __arm32__
+#    if defined (__arm32__) || defined (__mips64)
 #     define PORT_SIZE long
 #    else
 #     define PORT_SIZE short