[PATCH xf86-video-ati] Include xf86Pci.h for DRICreatePCIBusID with xserver Git master

Deucher, Alexander Alexander.Deucher at amd.com
Mon Jun 26 15:48:36 UTC 2017


> -----Original Message-----
> From: amd-gfx [mailto:amd-gfx-bounces at lists.freedesktop.org] On Behalf
> Of Michel Dänzer
> Sent: Monday, June 26, 2017 5:59 AM
> To: amd-gfx at lists.freedesktop.org
> Subject: [PATCH xf86-video-ati] Include xf86Pci.h for DRICreatePCIBusID with
> xserver Git master
> 
> From: Michel Dänzer <michel.daenzer at amd.com>
> 
> The declaration has been moved there from dri.h.
> 
> Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>

Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  src/radeon_probe.c | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/src/radeon_probe.c b/src/radeon_probe.c
> index aaace2b5f..19295f00c 100644
> --- a/src/radeon_probe.c
> +++ b/src/radeon_probe.c
> @@ -48,7 +48,12 @@
>  #include "xf86.h"
> 
>  #include "xf86drmMode.h"
> +
> +#if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(1,19,99,1,0)
> +#include <xf86Pci.h>
> +#else
>  #include "dri.h"
> +#endif
> 
>  #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
>  #include <xf86_OSproc.h>
> --
> 2.13.1
> 
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


More information about the amd-gfx mailing list