Subject: Re: need tester for cross-built xf4 Xhpc (hpcarm) Xserver
To: None <tech-x11@netbsd.org>
From: Valeriy E. Ushakov <uwe@ptc.spbu.ru>
List: tech-x11
Date: 12/31/2003 07:31:39
On Tue, Dec 30, 2003 at 09:10:28 +0900, Izumi Tsutsui wrote:
> Index: hw/xfree86/common/compiler.h
> ===================================================================
> RCS file: /cvsroot/xsrc/xfree/xc/programs/Xserver/hw/xfree86/common/compiler.h,v
> retrieving revision 1.11
> diff -u -r1.11 compiler.h
> --- hw/xfree86/common/compiler.h 29 Dec 2003 08:54:48 -0000 1.11
> +++ hw/xfree86/common/compiler.h 29 Dec 2003 23:54:30 -0000
> @@ -848,12 +848,16 @@
> # define mem_barrier() /* XXX: nop for now */
> # define write_mem_barrier() /* XXX: nop for now */
>
> -# elif defined(__mips__) || defined(__arm32__) || defined(__arm__)
> -#ifdef __arm32__
> +# elif defined(__mips__) || defined(__arm32__) || defined(__arm__) || defined(__sh__)
> +#if defined(__NetBSD__)
> +#define PORT_SIZE u_int
> +#else
> +#if defined(__arm32__)
> #define PORT_SIZE long
> #else
> #define PORT_SIZE short
> #endif
> +#endif
The code just below, that uses "unsigned PORT_SIZE" is not going to be
happy about ""unsigned u_int".
SY, Uwe
--
uwe@ptc.spbu.ru | Zu Grunde kommen
http://www.ptc.spbu.ru/~uwe/ | Ist zu Grunde gehen