theo doukas schrieb:
> Hi,
> 
> building of DirectFB, both CVS and 1.0-rc2 fails on my system (amd64, 
> debian etch rc1) due to a type conflict:
> 
> In file included from /usr/include/asm/types.h:8,
>                   from /usr/include/linux/agpgart.h:54,
>                   from agp.h:32,
>                   from fbdev.h:40,
>                   from fbdev.c:84:
> /usr/include/asm-x86_64/types.h:23: error: conflicting types for 's64'
> ../../include/dfb_types.h:31: error: previous declaration of 's64' was here
> /usr/include/asm-x86_64/types.h:24: error: conflicting types for 'u64'
> ../../include/dfb_types.h:26: error: previous declaration of 'u64' was here
> 
> The following simple modification fixes this for me. (I don't know if 
> that's the right fix, I just played around with it and thought I'd let 
> you know).
> 
> # cvs diff include/dfb_types.h
> Index: include/dfb_types.h
> ===================================================================
> RCS file: /cvs/directfb/DirectFB/include/dfb_types.h,v
> retrieving revision 1.7
> diff -r1.7 dfb_types.h
> 21a22
>  > #include <asm/types.h>

We can't include this from a public header, because it's not available
everywhere.

Actually, it's only available where it fails... due to that header :)

I got around it by including this header earlier in code that is only
built when this header is available and used (causing problems) anyhow.

-- 
Best regards,
   Denis Oliver Kropp

.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------"

_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to