[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-xorg
Subject:    Re: Compilation failed on current HEAD
From:       Torrey Lyons <torrey () mrcla ! com>
Date:       2005-07-12 23:06:52
Message-ID: 200507122306.TAA22305 () captain ! cnchost ! com
[Download RAW message or body]

There has a proliferation of usage of the SysV "uint" type. This also causes 
build breakage on Darwin in Xserver/render/picture.c. There is a workaround 
in picture.c specifically for WIN32:

#ifdef WIN32
typedef unsigned int uint;
#endif

The right way to do this is to include Xlib.h, Xos.h, or Xarch.h, which will 
include <sys/types.h> as appropriate to define uint. This should fix this 
issue for all platforms. Any preferences for which is best here?

--Torrey

---- Peter Zijlstra <a.p.zijlstra@chello.nl> wrote:
>
> Hi,
> 
> I tried to build current HEAD; I needed the following patch to make it
> work.
> 
> Kind regards,
> 
> Peter Zijlstra
> 
> 
> Index: programs/Xserver/fb/fbmmx.c
> ===================================================================
> RCS file: /cvs/xorg/xc/programs/Xserver/fb/fbmmx.c,v
> retrieving revision 1.11
> diff -u -r1.11 fbmmx.c
> --- programs/Xserver/fb/fbmmx.c 12 Jul 2005 10:02:10 -0000      1.11
> +++ programs/Xserver/fb/fbmmx.c 12 Jul 2005 21:22:03 -0000
> @@ -2300,13 +2300,15 @@
>      CMOV = 0x10
>  };
> 
> +typedef unsigned int uint;
> +

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic