SOURCES: X11-sparc64-v9fix.patch (NEW) sparc64 uber patch/fix
Jakub Bogusz
qboosh w pld-linux.org
Wto, 15 Lut 2005, 20:20:57 CET
On Sat, Feb 05, 2005 at 06:04:03PM +0100, gj wrote:
> Author: gj Date: Sat Feb 5 17:04:03 2005 GMT
> Module: SOURCES Tag: HEAD
> ---- Log message:
> sparc64 uber patch/fix
>
> ---- Files affected:
> SOURCES:
> X11-sparc64-v9fix.patch (NONE -> 1.1) (NEW)
>
> ---- Diffs:
>
> ================================================================
> Index: SOURCES/X11-sparc64-v9fix.patch
> diff -u /dev/null SOURCES/X11-sparc64-v9fix.patch:1.1
> --- /dev/null Sat Feb 5 18:04:03 2005
> +++ SOURCES/X11-sparc64-v9fix.patch Sat Feb 5 18:03:58 2005
> @@ -0,0 +1,15 @@
> +diff -ur X11-6.8.1/xc/include/Xmd.h X11-modified/xc/include/Xmd.h
> +--- X11-6.8.1/xc/include/Xmd.h 2005-02-05 16:37:53 +0000
> ++++ X11-modified/xc/include/Xmd.h 2005-02-05 16:13:30 +0000
> +@@ -58,6 +58,11 @@
> + #ifdef CRAY
> + #define WORD64 /* 64-bit architecture */
> + #endif
> ++
> ++#if defined(__sparc_v9__)
> ++#define __sparc64__
> ++#endif
> ++
Niedobrze.
$ sparc64-pld-linux-cpp -dM /dev/null -m32 -mcpu=v9 | grep sparc
#define sparc 1
#define __sparc__ 1
#define __sparc 1
#define __sparc_v9__ 1
__sparc_v9__ nie musi oznaczać sparc64.
Właściwy warunek to:
#if defined(__sparc__) && defined(__arch64__)
--
Jakub Bogusz http://cyber.cs.net.pl/~qboosh/
Więcej informacji o liście dyskusyjnej pld-devel-pl