Compilation failed on current HEAD

Torrey Lyons torrey at mrcla.com
Tue Jul 12 16:06:52 PDT 2005


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 at 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;
> +



More information about the xorg mailing list