diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2017-06-26 18:58:30 +0900 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2017-06-26 18:58:30 +0900 |
commit | 78fad9ca1635cca04b89807e3db029477cf46681 (patch) | |
tree | 758c4e0394fcf772d0fcd15c2b549e8b71e0aae6 | |
parent | ef95e3a3cc9189c8906fe5b4d70bfa9f1055d7ce (diff) |
Include xf86Pci.h for DRICreatePCIBusID with xserver Git master
The declaration has been moved there from dri.h.
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | src/radeon_probe.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/radeon_probe.c b/src/radeon_probe.c index aaace2b5..19295f00 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> |