summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/arch.h6
-rw-r--r--xorg/X11R7.6/rdp/rdp.h7
-rw-r--r--xorg/X11R7.6/xorg-server-1.9.3.patch18
3 files changed, 26 insertions, 5 deletions
diff --git a/common/arch.h b/common/arch.h
index 38bc6f25..95d19b47 100644
--- a/common/arch.h
+++ b/common/arch.h
@@ -41,10 +41,12 @@
# endif
#endif
/* check if we need to align data */
-#if defined(__sparc__) || defined(__alpha__) || defined(__hppa__) || \
+#if defined(__powerpc64__)
+# undef NEED_ALIGN
+#elif defined(__sparc__) || defined(__alpha__) || defined(__hppa__) || \
defined(__AIX__) || defined(__PPC__) || defined(__mips__) || \
defined(__ia64__) || defined(__ppc__) || defined(__arm__)
-#define NEED_ALIGN
+# define NEED_ALIGN
#endif
#endif
diff --git a/xorg/X11R7.6/rdp/rdp.h b/xorg/X11R7.6/rdp/rdp.h
index 695a2bde..dea9cbb6 100644
--- a/xorg/X11R7.6/rdp/rdp.h
+++ b/xorg/X11R7.6/rdp/rdp.h
@@ -513,11 +513,12 @@ rdpup_check_dirty(PixmapPtr pDirtyPixmap, rdpPixmapRec* pDirtyPriv);
# error Unknown endianness in rdp.h
#endif
/* check if we need to align data */
-/* check if we need to align data */
-#if defined(__sparc__) || defined(__alpha__) || defined(__hppa__) || \
+#if defined(__powerpc64__)
+# undef NEED_ALIGN
+#elif defined(__sparc__) || defined(__alpha__) || defined(__hppa__) || \
defined(__AIX__) || defined(__PPC__) || defined(__mips__) || \
defined(__ia64__) || defined(__ppc__) || defined(__arm__)
-#define NEED_ALIGN
+# define NEED_ALIGN
#endif
/* parser state */
diff --git a/xorg/X11R7.6/xorg-server-1.9.3.patch b/xorg/X11R7.6/xorg-server-1.9.3.patch
new file mode 100644
index 00000000..b7b3edae
--- /dev/null
+++ b/xorg/X11R7.6/xorg-server-1.9.3.patch
@@ -0,0 +1,18 @@
+diff -ur a/include/servermd.h b/include/servermd.h
+--- a/include/servermd.h
++++ b/include/servermd.h
+@@ -92,7 +92,13 @@
+ /* byte boundries */
+ #endif /* hpux || __hppa__ */
+
+-#if defined(__powerpc__) || defined(__ppc__) || defined(__ppc64__)
++#if defined(__powerpc64__) && !defined(__BIG_ENDIAN__)
++
++# define IMAGE_BYTE_ORDER LSBFirst
++# define BITMAP_BIT_ORDER LSBFirst
++# define GLYPHPADBYTES 4
++
++#elif defined(__powerpc__) || defined(__ppc__) || defined(__ppc64__)
+
+ #define IMAGE_BYTE_ORDER MSBFirst
+ #define BITMAP_BIT_ORDER MSBFirst