Source: vnc4
Version: 4.1.1+X4.3.0-37.4
Severity: important
Tags: patch

Hi,

vnc4 FTBFS on mips64el because it doesn't define LONG64 correctly in
Xmd.h. I've attached a patch which fixes this by replacing the entire
mess of architecture #ifdef stuff with a single #ifdef __LP64__ which
should work on all GCC arches.

Thanks,
James
--- a/unix/xc/include/Xmd.h
+++ b/unix/xc/include/Xmd.h
@@ -58,20 +58,9 @@ SOFTWARE.
 #ifdef CRAY
 #define WORD64				/* 64-bit architecture */
 #endif
-#if defined (__aarch64__) || \
-    defined(__alpha) || defined(__alpha__) || \
-    defined(__ia64__) || defined(ia64) || \
-    defined(__sparc64__) || defined(__powerpc64__) || \
-    defined(__s390x__) || \
-    (defined(__hppa__) && defined(__LP64__)) || \
-    defined(__x86_64__) || defined(x86_64)
+#ifdef __LP64__
 #define LONG64				/* 32/64-bit architecture */
 #endif
-#ifdef __sgi
-#if (_MIPS_SZLONG == 64)
-#define LONG64
-#endif
-#endif
 
 /*
  * Stuff to handle large architecture machines; the constants were generated

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to