[PATCH xf86-video-nouveau] Fix building on older servers without xf86platformBus.h

Alexander E. Patrakov patrakov at gmail.com
Fri Apr 11 06:17:57 PDT 2014


11.04.2014 18:22, Hans de Goede wrote:
> Signed-off-by: Hans de Goede <hdegoede at redhat.com>
> ---
>   src/nv_type.h | 5 +++++
>   1 file changed, 5 insertions(+)
>
> diff --git a/src/nv_type.h b/src/nv_type.h
> index 6ee36d7..bfc000e 100644
> --- a/src/nv_type.h
> +++ b/src/nv_type.h
> @@ -8,7 +8,12 @@
>   #include <stdbool.h>
>   #include <stdint.h>
>   #include "xf86Crtc.h"
> +
> +#ifdef XSERVER_PLATFORM_BUS
>   #include "xf86platformBus.h"
> +#else
> +struct xf86_platform_device; /* To avoid needing lots of #ifdef-s */
> +#endif

Can't we just always use the forward declaration?

>   
>   #if XF86_CRTC_VERSION >= 5
>   #define NOUVEAU_PIXMAP_SHARING 1

-- 
Alexander E. Patrakov



More information about the xorg-devel mailing list